ReportError
in package
Read onlyYes
FinalYes
Canonical error data used when no command-specific result document exists.
Table of Contents
Constants
- KIND_ERROR : mixed = 'error'
- KIND_FAILURE : mixed = 'failure'
Methods
- __construct() : mixed
- error() : self
- failure() : self
- fromThrowable() : self
- getDetails() : string
- getKind() : string
- getMessage() : string
- getType() : string
Constants
KIND_ERROR
public
mixed
KIND_ERROR
= 'error'
KIND_FAILURE
public
mixed
KIND_FAILURE
= 'failure'
Methods
__construct()
public
__construct(string $kind, string $type, string $message[, string $details = '' ]) : mixed
Parameters
- $kind : string
- $type : string
- $message : string
- $details : string = ''
error()
public
static error(string $type, string $message[, string $details = '' ]) : self
Parameters
- $type : string
- $message : string
- $details : string = ''
Return values
selffailure()
public
static failure(string $type, string $message[, string $details = '' ]) : self
Parameters
- $type : string
- $message : string
- $details : string = ''
Return values
selffromThrowable()
public
static fromThrowable(Throwable $error[, string $kind = self::KIND_ERROR ]) : self
Parameters
- $error : Throwable
- $kind : string = self::KIND_ERROR
Return values
selfgetDetails()
public
getDetails() : string
Return values
stringgetKind()
public
getKind() : string
Return values
stringgetMessage()
public
getMessage() : string
Return values
stringgetType()
public
getType() : string