\Disco\exceptionsRecordValidation

Abstract Exception which all Disco Exceptions extend.

Summary

Methods
Properties
Constants
__construct()
__toString()
setData()
getData()
No public properties found
No constants found
No protected methods found
$data
N/A
No private methods found
No private properties found
N/A

Properties

$data

$data : mixed

Type

mixed — Additional data that may be set via `$this->setData()` to provide futher insight about the Exception.

Methods

__construct()

__construct(null|string  $message = null, integer  $code) 

Construct Exception.

Parameters

null|string $message

The error message.

integer $code

The error code.

__toString()

__toString() : string

To String method.

Returns

string

setData()

setData(mixed  $data) : self

Set additional data that may aid in the debugging of the Exception.

Parameters

mixed $data

The data.

Returns

self —

Returns self to allow chaining

getData()

getData() : mixed

Get any additional data that may aid in the debugging of the Exception.

Returns

mixed —

The data.