Skip to content

Commit

Permalink
NTR - Add exception message to message failed exception
Browse files Browse the repository at this point in the history
  • Loading branch information
PascalThesing committed Aug 30, 2019
1 parent 98e2cc6 commit 381c6c4
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -28,11 +28,12 @@ public function __construct(object $originalMessage, string $handlerClass, \Thro
$this->exception = $exception;

parent::__construct(
'The handler "{{ handlerClass }}" threw a "{{ exceptionClass }}" for message "{{ messageClass }}".',
'The handler "{{ handlerClass }}" threw a "{{ exceptionClass }}" for message "{{ messageClass }}". The Exception was "{{ exceptionMessage }}.',
[
'handlerClass' => $handlerClass,
'exceptionClass' => get_class($exception),
'messageClass' => get_class($originalMessage),
'exceptionMessage' => $exception->getMessage(),
]
);
}
Expand Down

0 comments on commit 381c6c4

Please sign in to comment.