API Documentation for: 1.1.1
Show:

ObjectServiceError Class

Extends CanteenError
Namespace: Canteen\Errors

Exceptions specific to the ObjectService API.
Located in the namespace Canteen\Errors.

Constructor

ObjectServiceError

(
  • 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

INVALID_FIELD_NAME

Int final static

There is no field matching the supplied name

INVALID_INDEX

Int final static

There is not a valid dynamic method matching this name

INVALID_METHOD

Int final static

The dynamic method name is invalid for the service

INVALID_PROPERTY

Int final static

The dynamic method name is invalid for the service

messages

Array private final static

The collection of messages

NO_DEFAULT_INDEX

Int final static

Custom service does not have a default index

UNREGISTERED_ITEM

Int final static

The definition name is invalid

WRONG_ARG_COUNT

Int final static

Wrong number of arguments for dynamic method