ErrorService extends BaseService
FinalYes
Class ErrorService
Table of Contents
Methods
- __clone() : mixed
- __wakeup() : mixed
- addError() : void
- clearErrors() : void
- getErrors() : ErrorCollection
- getInstance() : static
- hasErrors() : bool
- setLogErrors() : void
- setThrowExceptionOnError() : void
Methods
__clone()
public
__clone() : mixed
__wakeup()
public
__wakeup() : mixed
addError()
public
addError(Error $error) : void
Parameters
- $error : Error
Tags
clearErrors()
public
clearErrors() : void
getErrors()
public
getErrors() : ErrorCollection
Return values
ErrorCollectiongetInstance()
public
static getInstance() : static
Return values
statichasErrors()
public
hasErrors() : bool
Return values
boolsetLogErrors()
public
setLogErrors(bool $logErrors) : void
Parameters
- $logErrors : bool
setThrowExceptionOnError()
public
setThrowExceptionOnError(bool $throwExceptionOnError) : void
Parameters
- $throwExceptionOnError : bool