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())

No description

toArray()

No description

getStatusCode()

No description

setStatusCode($code)

No description

getHeaders()

No description

setHeaders(array $headers)

No description

getClass()

No description

setClass($class)

No description

getFile()

No description

setFile($file)

No description

getLine()

No description

setLine($line)

No description

getMessage()

No description

setMessage($message)

No description

getCode()

No description

setCode($code)

No description

getPrevious()

No description

setPrevious(FlattenException $previous)

No description

getAllPrevious()

No description

getTrace()

No description

setTraceFromException(Exception $exception)

No description

setTrace($trace, $file, $line)

No description

Details

at line line 35
static create(Exception $exception, $statusCode = null, array $headers = array())

Parameters

Exception $exception
$statusCode
array $headers

at line line 68
toArray()

at line line 82
getStatusCode()

at line line 87
setStatusCode($code)

Parameters

$code

at line line 92
getHeaders()

at line line 97
setHeaders(array $headers)

Parameters

array $headers

at line line 102
getClass()

at line line 107
setClass($class)

Parameters

$class

at line line 112
getFile()

at line line 117
setFile($file)

Parameters

$file

at line line 122
getLine()

at line line 127
setLine($line)

Parameters

$line

at line line 132
getMessage()

at line line 137
setMessage($message)

Parameters

$message

at line line 142
getCode()

at line line 147
setCode($code)

Parameters

$code

at line line 152
getPrevious()

at line line 157
setPrevious(FlattenException $previous)

Parameters

FlattenException $previous

at line line 162
getAllPrevious()

at line line 173
getTrace()

at line line 178
setTraceFromException(Exception $exception)

Parameters

Exception $exception

at line line 183
setTrace($trace, $file, $line)

Parameters

$trace
$file
$line