* throw new ezcConfigurationException( * "There is no configuration object", * ezcConfigurationException::NO_CONFIG * ); * * * @package Configuration * @version 1.0beta2 */ class ezcConfigurationException extends Exception { /** * No configuration object has been set to operate on. The operation cannot * continue with this object. */ const NO_CONFIG_OBJECT = 1; /** * The current location is not valid. This means it is impossible to read * or write using the location values. */ const LOCATION_INVALID = 2; /** * No config object is present to work on. Cannot continue operation. */ const NO_CONFIG = 3; /** * The read operation for the configuration failed. */ const READ_FAILED = 4; /** * The write operation for the configuration failed. */ const WRITE_FAILED = 5; /** * The specified group does not exist in the settings. */ const UNKNOWN_GROUP = 6; /** * The specified setting does not exist in the settings. */ const UNKNOWN_SETTING = 7; /** * The specified configuration does not exist in the system. */ const UNKNOWN_CONFIG = 8; /** * The accessed setting is not a boolean which was the requested type. */ const SETTING_NOT_BOOL = 9; /** * The accessed setting is not a number which was the requested type. */ const SETTING_NOT_NUMBER = 10; /** * The accessed setting is not a string which was the requested type. */ const SETTING_NOT_STRING = 11; /** * The accessed setting is not an array which was the requested type. */ const SETTING_NOT_ARRAY = 12; /** * There were errors while parsing a file while the parser was not in * validation mode */ const PARSE_ERROR = 13; /** * A group was tried to add, while it already existed */ const GROUP_ALREADY_EXISTS = 14; /** * Invalid class is passed as INI reader to the manager. */ const INVALID_READER_CLASS = 15; /** * A setting name was not of the type 'string' */ const SETTINGNAME_NOT_STRING = 16; /** * Constructs the exception with message $message and errorcode $code. * * $code must specify one of the class constants in this class. * * @param string $message * @param int $code */ public function __construct( $message, $code ) { parent::__construct( $message, $code ); } } ?>