API Documentation for: 1.1.1
Show:

GatewayError Class

Extends CanteenError
Namespace: Canteen\Errors

Exceptions specific to the JSON server.
Located in the namespace Canteen\Errors.

Constructor

GatewayError

(
  • code
  • [data='']
)

Parameters:

  • code Int

    The error code

  • [data=''] String | Array optional

    The optional data associated with this error

Item Index

Methods

Methods

getResult

() Dictionary

Inherited from CanteenError:

Get the result object

Returns:

Dictionary:

The result Exception object formatted nicely

Properties

BAD_URI_REQUEST

Int final static

Bad URI request was made with the gateway

INCORRECT_PARAMETERS

Int final static

The wrong number of parameters

INSUFFICIENT_PRIVILEGE

Int final static

Method can't be access by the client

messages

Array private final static

The collection of messages

NO_CONTROL_FOUND

Int final static

No control was found matching the URI request

NO_INPUT

Int final static

No input provided

REGISTERED_URI

Int final static

The alias is already registerd