exception.php
586 Bytes
<?php
class Flora_Api_Exception extends Exception
{
const API_NEED_UPDATE_CLIENT = 0xFFFF;
const API_DEFAULT_ERROR = 0xFFFF;
const ERROR_BAD_ARGUMENTS = 0x01;
const ERROR_INVALID_API_ID_KEY = 0x02;
const ERROR_INVALID_SIGN_KEY = 0x03;
const ERROR_APPLICATION_NOT_FOUND = 0x04;
const ERROR_BAD_SIGNATURE = 0x05;
const ERROR_API_NOT_FOUND = 0x06;
const ERROR_OBJECT_NOT_FOUND = 0x07;
const ERROR_INVALID_PARAMETER_TYPE = 0x08;
const ERROR_REQUIRED_USER_AUTHORIZATION = 0x10;
public function __construct($message, $code = 0xFF)
{
parent::__construct($message, $code);
}
}