CodeExplorer getExceptionCode example
$failedAt = '';
$errorMessage = '';
$errorCode = '';
$errorClass = '(unknown)';
if (null !==
$lastRedeliveryStamp) { $failedAt =
$lastRedeliveryStamp->
getRedeliveredAt()->
format('Y-m-d H:i:s'
);
} if (null !==
$lastErrorDetailsStamp) { $errorMessage =
$lastErrorDetailsStamp->
getExceptionMessage();
$errorCode =
$lastErrorDetailsStamp->
getExceptionCode();
$errorClass =
$lastErrorDetailsStamp->
getExceptionClass();
} $rows =
array_merge($rows,
[ ['Failed at',
$failedAt],
['Error',
$errorMessage],
['Error Code',
$errorCode],
['Error Class',
$errorClass],
['Transport',
$sentToFailureTransportStamp->
getOriginalReceiverName()],
]);
}