Error thrown when a payload is determined to be invalid, potentially due to issues with deserialization, or if an invalid signature allowed the payload to be processed.
new
BadPayloadError(message: string,originalError: $TsFixMe,)
Constructs a new BadPayloadError
instance.
originalError: $TsFixMe
The original error that led to the payload being marked as invalid.