RavSystem API docs

ActionError
in package
implements JsonSerializable

Interfaces, Classes, Traits and Enums

JsonSerializable

Table of Contents

BAD_REQUEST  = 'BAD_REQUEST'
CONFLICT  = 'CONFLICT'
INSUFFICIENT_PRIVILEGES  = 'INSUFFICIENT_PRIVILEGES'
NOT_ALLOWED  = 'NOT_ALLOWED'
NOT_IMPLEMENTED  = 'NOT_IMPLEMENTED'
RESOURCE_NOT_FOUND  = 'RESOURCE_NOT_FOUND'
SERVER_ERROR  = 'SERVER_ERROR'
UNAUTHENTICATED  = 'UNAUTHENTICATED'
UNPROCESSABLE_ENTITY  = 'UNPROCESSABLE_ENTITY'
VALIDATION_ERROR  = 'VALIDATION_ERROR'
VERIFICATION_ERROR  = 'VERIFICATION_ERROR'
$description  : string
$type  : string
__construct()  : mixed
getDescription()  : string
get description of the error
getType()  : string
get type of the error
jsonSerialize()  : mixed
{@inheritDoc}
setDescription()  : ActionError
set description of the error
setType()  : ActionError
set type of the error

Constants

BAD_REQUEST

public mixed BAD_REQUEST = 'BAD_REQUEST'

INSUFFICIENT_PRIVILEGES

public mixed INSUFFICIENT_PRIVILEGES = 'INSUFFICIENT_PRIVILEGES'

NOT_ALLOWED

public mixed NOT_ALLOWED = 'NOT_ALLOWED'

NOT_IMPLEMENTED

public mixed NOT_IMPLEMENTED = 'NOT_IMPLEMENTED'

RESOURCE_NOT_FOUND

public mixed RESOURCE_NOT_FOUND = 'RESOURCE_NOT_FOUND'

SERVER_ERROR

public mixed SERVER_ERROR = 'SERVER_ERROR'

UNAUTHENTICATED

public mixed UNAUTHENTICATED = 'UNAUTHENTICATED'

UNPROCESSABLE_ENTITY

public mixed UNPROCESSABLE_ENTITY = 'UNPROCESSABLE_ENTITY'

VALIDATION_ERROR

public mixed VALIDATION_ERROR = 'VALIDATION_ERROR'

VERIFICATION_ERROR

public mixed VERIFICATION_ERROR = 'VERIFICATION_ERROR'

Properties

Methods

__construct()

public __construct(string $type, string|null $description) : mixed
Parameters
$type : string
$description : string|null
Return values
mixed

getDescription()

get description of the error

public getDescription() : string
Return values
string

getType()

get type of the error

public getType() : string
Return values
string

jsonSerialize()

{@inheritDoc}

public jsonSerialize() : mixed
Return values
mixed

setDescription()

set description of the error

public setDescription([string|null $description = null ]) : ActionError
Parameters
$description : string|null = null
Return values
ActionError

Search results