Exception\FlattenException (Component\Debug)
Symfony\Component\Debug\Exception\FlattenException
class FlattenException
FlattenException wraps a PHP Exception to be able to serialize it.
Basically, this class removes all objects from the trace.
Methods
static | create(Exception $exception, $statusCode = null, array $headers = array()) | |
toArray() | ||
getStatusCode() | ||
setStatusCode($code) | ||
getHeaders() | ||
setHeaders(array $headers) | ||
getClass() | ||
setClass($class) | ||
getFile() | ||
setFile($file) | ||
getLine() | ||
setLine($line) | ||
getMessage() | ||
setMessage($message) | ||
getCode() | ||
setCode($code) | ||
getPrevious() | ||
setPrevious(FlattenException $previous) | ||
getAllPrevious() | ||
getTrace() | ||
setTraceFromException(Exception $exception) | ||
setTrace($trace, $file, $line) |
Details
static public create(Exception $exception, $statusCode = null, array $headers = array())
public toArray()
public getStatusCode()
public setStatusCode($code)
public getHeaders()
public setHeaders(array $headers)
public getClass()
public setClass($class)
public getFile()
public setFile($file)
public getLine()
public setLine($line)
public getMessage()
public setMessage($message)
public getCode()
public setCode($code)
public getPrevious()
public setPrevious(FlattenException $previous)
public getAllPrevious()
public getTrace()
public setTraceFromException(Exception $exception)
public setTrace($trace, $file, $line)
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/Debug/Exception/FlattenException.html