RosetteException
extends CustomException
in package
Class RosetteException.
Table of Contents
Properties
- $BAD_REQUEST_FORMAT : int
- The general error returned from Analytics API, indicating unrecognized format.
- $INCOMPATIBLE_VERSION : int
- Internal error that throws if the Analytics API server version does not match the Api version.
- $INVALID_DATATYPE : int
- Internal error (api level) that indicates an incorrect datatype.
- $INVALID_PROPERTY_NAME : int
- Internal error indicating that the requested property does not exist.
- $code : int
- User-defined exception code.
- $message : string
- Exception message.
Methods
- __construct() : mixed
- Constructor.
- __toString() : string
- Magic method to return the stringized form of CustomException.
Properties
$BAD_REQUEST_FORMAT
The general error returned from Analytics API, indicating unrecognized format.
public
static int
$BAD_REQUEST_FORMAT
= 400
$INCOMPATIBLE_VERSION
Internal error that throws if the Analytics API server version does not match the Api version.
public
static int
$INCOMPATIBLE_VERSION
= -6
$INVALID_DATATYPE
Internal error (api level) that indicates an incorrect datatype.
public
static int
$INVALID_DATATYPE
= -3
$INVALID_PROPERTY_NAME
Internal error indicating that the requested property does not exist.
public
static int
$INVALID_PROPERTY_NAME
= -7
$code
User-defined exception code.
protected
int
$code
= 0
$message
Exception message.
protected
string
$message
= 'Unknown exception'
Methods
__construct()
Constructor.
public
__construct([string|null $message = null ][, int $code = 0 ]) : mixed
Parameters
- $message : string|null = null
- $code : int = 0
__toString()
Magic method to return the stringized form of CustomException.
public
__toString() : string