Documentation

ExceptionContext
in package
implements DOMWriterInterface

FinalYes

Serializes exception metadata into DOM for Farah error responses.

Tags
author

Daniel Schulz

since
2018-02-21

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
self

toDocument()

public toDocument() : DOMDocument
Return values
DOMDocument

toElement()

public toElement(DOMDocument $targetDoc) : DOMElement
Parameters
$targetDoc : DOMDocument
Return values
DOMElement
On this page

Search results