Added class name to email,bump to 0.0.6

This commit is contained in:
Jérémy Munsch 2021-12-01 09:54:11 +01:00
parent 52a3f5a3f7
commit 9e17a9c0a4
No known key found for this signature in database
GPG key ID: 55196BEE445F6049
4 changed files with 7 additions and 1 deletions

View file

@ -2,6 +2,9 @@
All notable changes to `ExceptionHandler` will be documented in this file.
# version 0.0.6
- Added class name to email message
# version 0.0.5
- Fixed Handle cases where exception came from a function instead of a class
# version 0.0.4

View file

@ -5,6 +5,7 @@
]) }}
{{ __('check_trace') }}
{{ $ename }}
{{ $emessage }}
{{ __('uri') }} : {{ $uri }}
{{ __('date') }} : {{ date('Y-m-d H:i:s') }}

View file

@ -11,7 +11,8 @@
<h1>{{ __('error_occured_in_app', ['appName' => $appName]) }}</h1>
<p>{{ __('check_trace') }}</p>
<h2>{{ $emessage }}</h2>
<h2>{{ $ename }}</h2>
<h3>{{ $emessage }}</h3>
<p>{{ __('uri') }} : {{ $uri }}</p>
<p>{{ __('date') }} : {{ date('Y-m-d H:i:s') }}</p>
<p>{{ __('code') }} : {{ $code }}</p>

View file

@ -70,6 +70,7 @@ class ExceptionHandler extends Handler
'appName' => config('app.name'),
'code' => $e->getCode(),
'line' => $e->getLine(),
'ename' => \get_class($e),
'emessage' => $this->getAnonymizedMessage($e->getMessage()),
'file' => str_replace(\realpath(\sprintf('%s/../', \app_path())), '', $e->getFile()),
'stackTrace' => $this->getAnonymizedStackTrace($e),