InvalidPayloadException constructor

const InvalidPayloadException(
  1. String message, {
  2. Object? cause,
})

Creates the exception.