Skip to content

Commit

Permalink
Merge branch 'ntr/master/add-exception-message-to-message-failed-exce…
Browse files Browse the repository at this point in the history
…ption' into 'master'

NTR - Add exception message to message failed exception

See merge request shopware/6/product/platform!278
  • Loading branch information
janbuecker committed Sep 2, 2019
2 parents ac88933 + 381c6c4 commit b8a4b2c
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 b8a4b2c

Please sign in to comment.