1637. Class

1637.1. Zend\Json\Server\Error

1637.1.1. Methods

1637.1.1.1. __construct

__construct()

Constructor

Parameters:
  • string
  • int
  • mixed

1637.1.1.2. setCode

setCode()

Set error code

Parameters:int
Return type:ZendJsonServerError

1637.1.1.3. getCode

getCode()

Get error code

Return type:int|null

1637.1.1.4. setMessage

setMessage()

Set error message

Parameters:string
Return type:ZendJsonServerError

1637.1.1.5. getMessage

getMessage()

Get error message

Return type:string

1637.1.1.6. setData

setData()

Set error data

Parameters:mixed
Return type:ZendJsonServerError

1637.1.1.7. getData

getData()

Get error data

Return type:mixed

1637.1.1.8. toArray

toArray()

Cast error to array

Return type:array

1637.1.1.9. toJson

toJson()

Cast error to JSON

Return type:string

1637.1.1.10. __toString

__toString()

Cast to string (JSON)

Return type:string

1637.1.2. Constants

1637.1.2.1. ERROR_PARSE

1637.1.2.2. ERROR_INVALID_REQUEST

1637.1.2.3. ERROR_INVALID_METHOD

1637.1.2.4. ERROR_INVALID_PARAMS

1637.1.2.5. ERROR_INTERNAL

1637.1.2.6. ERROR_OTHER