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 36
static create(Exception $exception, $statusCode = null, array $headers = array())

Parameters

Exception $exception
$statusCode
array $headers

at line line 71
toArray()

at line line 85
getStatusCode()

at line line 90
setStatusCode($code)

Parameters

$code

at line line 95
getHeaders()

at line line 100
setHeaders(array $headers)

Parameters

array $headers

at line line 105
getClass()

at line line 110
setClass($class)

Parameters

$class

at line line 115
getFile()

at line line 120
setFile($file)

Parameters

$file

at line line 125
getLine()

at line line 130
setLine($line)

Parameters

$line

at line line 135
getMessage()

at line line 140
setMessage($message)

Parameters

$message

at line line 145
getCode()

at line line 150
setCode($code)

Parameters

$code

at line line 155
getPrevious()

at line line 160
setPrevious(FlattenException $previous)

Parameters

FlattenException $previous

at line line 165
getAllPrevious()

at line line 176
getTrace()

at line line 181
setTraceFromException(Exception $exception)

Parameters

Exception $exception

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

Parameters

$trace
$file
$line