Properties

$exception

$exception : \Throwable

Type

\Throwable

$previousExceptions

$previousExceptions : array<mixed,\Throwable>

Type

array<mixed,\Throwable>

Methods

__construct()

__construct(\Throwable  $exception) 

Parameters

\Throwable $exception

The exception to inspect

getException()

getException() : \Throwable

Returns

\Throwable

getExceptionName()

getExceptionName() : string

Returns

string

getExceptionMessage()

getExceptionMessage() : string

Returns

string

getPreviousExceptionMessages()

getPreviousExceptionMessages() : array<mixed,string>

Returns

array<mixed,string>

getPreviousExceptionCodes()

getPreviousExceptionCodes() : array<mixed,integer>

Returns

array<mixed,integer>

getExceptionDocrefUrl()

getExceptionDocrefUrl() : string|null

Returns a url to the php-manual related to the underlying error - when available.

Returns

string|null

hasPreviousException()

hasPreviousException() : boolean

Does the wrapped Exception has a previous Exception?

Returns

boolean

getPreviousExceptionInspector()

getPreviousExceptionInspector() : \Whoops\Exception\Inspector

Returns an Inspector for a previous Exception, if any.

Returns

\Whoops\Exception\Inspector

getPreviousExceptions()

getPreviousExceptions() : array<mixed,\Throwable>

Returns an array of all previous exceptions for this inspector's exception

Returns

array<mixed,\Throwable>

getTrace()

getTrace(\Throwable  $e) : array

Gets the backtrace from an exception.

If xdebug is installed

Parameters

\Throwable $e

Returns

array

getFrameFromException()

getFrameFromException(\Throwable  $exception) : array

Given an exception, generates an array in the format generated by Exception::getTrace()

Parameters

\Throwable $exception

Returns

array

getFrameFromError()

getFrameFromError(\Whoops\Exception\ErrorException  $exception) : array

Given an error, generates an array in the format generated by ErrorException

Parameters

\Whoops\Exception\ErrorException $exception

Returns

array

isValidNextFrame()

isValidNextFrame(array  $frame) : boolean

Determine if the frame can be used to fill in previous frame's missing info happens for call_user_func and call_user_func_array usages (PHP Bug #44428)

Parameters

array $frame

Returns

boolean

extractDocrefUrl()

extractDocrefUrl(  $message) 

Parameters

$message