_attributes = $message; $message = vsprintf(__($this->_messageTemplate), $message); } parent::__construct($message, $code); } public function getAttributes() { return $this->_attributes; } } /* * Exceptions used by Dispatcher */ class MissingControllerException extends CakeException { protected $_messageTemplate = 'Controller class %s could not be found.'; public function __construct($message, $code = 404) { parent::__construct($message, $code); } } class MissingActionException extends CakeException { protected $_messageTemplate = 'Action %s::%s() could not be found.'; public function __construct($message, $code = 404) { parent::__construct($message, $code); } } class PrivateActionException extends CakeException { protected $_messageTemplate = 'Private Action %s::%s() is not directly accessible.'; public function __construct($message, $code = 404, Exception $previous = null) { parent::__construct($message, $code, $previous); } } /** * Exceptions used by the ComponentCollection. */ class MissingComponentFileException extends CakeException { protected $_messageTemplate = 'Component File "%s" is missing.'; } class MissingComponentClassException extends CakeException { protected $_messageTemplate = 'Component class "%s" is missing.'; } /** * Runtime Exceptions for behaviors */ class MissingBehaviorFileException extends CakeException { } class MissingBehaviorClassException extends CakeException { } /** * Runtime Exceptions for Views */ class MissingViewException extends CakeException { protected $_messageTemplate = 'View file "%s" is missing.'; } class MissingLayoutException extends CakeException { protected $_messageTemplate = 'Layout file "%s" is missing.'; } /** * Exceptions used by the HelperCollection. */ class MissingHelperFileException extends CakeException { protected $_messageTemplate = 'Helper File "%s" is missing.'; } class MissingHelperClassException extends CakeException { protected $_messageTemplate = 'Helper class "%s" is missing.'; } /** * Runtime Exceptions for ConnectionManager */ class MissingDatabaseException extends CakeException { protected $_messageTemplate = 'Database connection "%s" could not be found.'; } class MissingConnectionException extends CakeException { protected $_messageTemplate = 'Database connection "%s" is missing.'; } /** * Exceptions used by the TaskCollection. */ class MissingTaskFileException extends CakeException { protected $_messageTemplate = 'Task file "%s" is missing.'; } class MissingTaskClassException extends CakeException { protected $_messageTemplate = 'Task class "%s" is missing.'; } /** * Exception class to be thrown when a database table is not found in the datasource * */ class MissingTableException extends CakeException { protected $_messageTemplate = 'Database table %s for model %s was not found.'; }