ExceptionContext
in package
implements
DOMWriterInterface
FinalYes
Serializes exception metadata into DOM for Farah error responses.
Tags
Table of Contents
Interfaces
- DOMWriterInterface
Methods
- addData() : void
- append() : self
- getAsset() : AssetInterface|null
- getClass() : string|null
- getModule() : ManifestInterface|null
- getResult() : ResultInterface|null
- toDocument() : DOMDocument
- toElement() : DOMElement
Methods
addData()
public
addData(array<string|int, mixed> $data) : void
Parameters
- $data : array<string|int, mixed>
append()
public
static append(Throwable $exception[, array<string|int, mixed> $data = [] ]) : self
Parameters
- $exception : Throwable
- $data : array<string|int, mixed> = []
Return values
selfgetAsset()
public
getAsset() : AssetInterface|null
Return values
AssetInterface|nullgetClass()
public
getClass() : string|null
Return values
string|nullgetModule()
public
getModule() : ManifestInterface|null
Return values
ManifestInterface|nullgetResult()
public
getResult() : ResultInterface|null
Return values
ResultInterface|nulltoDocument()
public
toDocument() : DOMDocument
Return values
DOMDocumenttoElement()
public
toElement(DOMDocument $targetDoc) : DOMElement
Parameters
- $targetDoc : DOMDocument