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
Details
static
create(Exception $exception, $statusCode = null, array $headers = array())
Parameters
Exception | $exception | |
| $statusCode | |
array | $headers | |
static FlattenException
createFromThrowable(Throwable $exception, int|null $statusCode = null, array $headers = array())
Parameters
Throwable | $exception | |
int|null | $statusCode | |
array | $headers | |
Return Value
toArray()
getStatusCode()
setStatusCode($code)
Parameters
Parameters
getClass()
setClass($class)
Parameters
getFile()
setFile($file)
Parameters
getLine()
setLine($line)
Parameters
getMessage()
setMessage($message)
Parameters
getCode()
setCode($code)
Parameters
getPrevious()
Parameters
getAllPrevious()
getTrace()
setTraceFromException(Exception $exception)
deprecated
deprecated
since | 4.1, use {@see setTraceFromThrowable()} instead. |
Parameters
void
setTraceFromThrowable(Throwable $throwable)
Parameters
Return Value
setTrace($trace, $file, $line)
Parameters