FlattenException
class FlattenException
FlattenException wraps a PHP Error or Exception to be able to serialize it.
Basically, this class removes all objects from the trace.
Methods
static FlattenException
createFromThrowable(Throwable $exception, int|null $statusCode = null, array $headers = array())
No description
toArray()
No description
getStatusCode()
No description
$this
setStatusCode($code)
No description
getHeaders()
No description
$this
setHeaders(array $headers)
No description
getClass()
No description
$this
setClass($class)
No description
getFile()
No description
$this
setFile($file)
No description
getLine()
No description
$this
setLine($line)
No description
getMessage()
No description
$this
setMessage($message)
No description
getCode()
No description
$this
setCode($code)
No description
getPrevious()
No description
$this
getAllPrevious()
No description
getTrace()
No description
$this
setTrace($trace, $file, $line)
No description
Details
static FlattenException
createFromThrowable(Throwable $exception, int|null $statusCode = null, array $headers = array())
setTraceFromException(Exception $exception)
deprecated
deprecated since 4.1, use {@see setTraceFromThrowable()} instead.