final class ChannelSendFailedException extends ChannelException

Handles exceptions related to sending through a channel. Extends the ChannelException class

Methods

__construct(string $channel, string $notificationClass, string|int|null $notifiableId, string $message = 'Send failed', Throwable|null $previous = null)

Create an exception indicating that delivery over a specific notification channel failed. Includes contextual metadata (channel name, notification class, and notifiable id) to aid logging and retries.

Details

at line 25
__construct(string $channel, string $notificationClass, string|int|null $notifiableId, string $message = 'Send failed', Throwable|null $previous = null)

Create an exception indicating that delivery over a specific notification channel failed. Includes contextual metadata (channel name, notification class, and notifiable id) to aid logging and retries.

Parameters

string $channel

Short channel name (e.g. "mail", "database").

string $notificationClass

Fully-qualified class name of the notification (or mailer) involved.

string|int|null $notifiableId

Identifier of the target entity, if known.

string $message

Optional human-readable details.

Throwable|null $previous

Optional underlying cause for exception chaining.