final class InvalidQueuePayloadException extends RuntimeException (View source)

Identifies deterministic queue-envelope failures that must terminate the persisted job.

Messages deliberately exclude raw payload data so logs can report the failure without copying attacker-controlled queue contents.

Methods

malformed(Throwable|null $previous = null)

Reports a malformed, oversized, or non-JSON envelope without exposing its contents.

Reports that the envelope signature does not authenticate its body.

Reports an authenticated type alias absent from the explicit codec registry.

Reports an authenticated schema version unsupported by the registered codec.

codecFailure(Throwable $previous)

Maps a codec's deterministic hydration failure to a terminal payload error.

Reports a codec that returned an object outside its registered message class.

Details

malformed

static InvalidQueuePayloadException malformed(Throwable|null $previous = null)

Reports a malformed, oversized, or non-JSON envelope without exposing its contents.

Parameters

Throwable|null $previous

Return Value

InvalidQueuePayloadException

invalidMac

Reports that the envelope signature does not authenticate its body.

unknownType

Reports an authenticated type alias absent from the explicit codec registry.

unsupportedVersion

static InvalidQueuePayloadException unsupportedVersion()

Reports an authenticated schema version unsupported by the registered codec.

codecFailure

static InvalidQueuePayloadException codecFailure(Throwable $previous)

Maps a codec's deterministic hydration failure to a terminal payload error.

Parameters

Throwable $previous

Return Value

InvalidQueuePayloadException

codecTypeMismatch

static InvalidQueuePayloadException codecTypeMismatch()

Reports a codec that returned an object outside its registered message class.