W3cubDocs

/Symfony 2.7

Symfony\Component\HttpKernel\Exception\FlattenException

class FlattenException extends 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()) from FlattenException
toArray() from FlattenException
getStatusCode() from FlattenException
setStatusCode($code) from FlattenException
getHeaders() from FlattenException
setHeaders(array $headers) from FlattenException
getClass() from FlattenException
setClass($class) from FlattenException
getFile() from FlattenException
setFile($file) from FlattenException
getLine() from FlattenException
setLine($line) from FlattenException
getMessage() from FlattenException
setMessage($message) from FlattenException
getCode() from FlattenException
setCode($code) from FlattenException
getPrevious() from FlattenException
setPrevious(FlattenException $previous) from FlattenException
getAllPrevious() from FlattenException
getTrace() from FlattenException
setTraceFromException(Exception $exception) from FlattenException
setTrace($trace, $file, $line) from FlattenException

Details

static public create(Exception $exception, $statusCode = null, array $headers = array())

Parameters

Exception $exception
$statusCode
array $headers

public toArray()

public getStatusCode()

public setStatusCode($code)

Parameters

$code

public getHeaders()

public setHeaders(array $headers)

Parameters

array $headers

public getClass()

public setClass($class)

Parameters

$class

public getFile()

public setFile($file)

Parameters

$file

public getLine()

public setLine($line)

Parameters

$line

public getMessage()

public setMessage($message)

Parameters

$message

public getCode()

public setCode($code)

Parameters

$code

public getPrevious()

public setPrevious(FlattenException $previous)

Parameters

FlattenException $previous

public getAllPrevious()

public getTrace()

public setTraceFromException(Exception $exception)

Parameters

Exception $exception

public setTrace($trace, $file, $line)

Parameters

$trace
$file
$line

© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.7/Symfony/Component/HttpKernel/Exception/FlattenException.html