|
|
@@ -34,9 +34,9 @@ class CakeBaseException extends RuntimeException {
|
|
|
/**
|
|
|
* Get/set the response header to be used
|
|
|
*
|
|
|
- * @param string|array $header. An array of header strings or a single header string
|
|
|
- * - an associative array of "header name" => "header value"
|
|
|
- * - an array of string headers is also accepted
|
|
|
+ * @param string|array $header An array of header strings or a single header string
|
|
|
+ * - an associative array of "header name" => "header value"
|
|
|
+ * - an array of string headers is also accepted
|
|
|
* @param string $value The header value.
|
|
|
* @return array
|
|
|
* @see CakeResponse::header()
|
|
|
@@ -378,6 +378,12 @@ class MissingConnectionException extends CakeException {
|
|
|
|
|
|
protected $_messageTemplate = 'Database connection "%s" is missing, or could not be created.';
|
|
|
|
|
|
+/**
|
|
|
+ * Constructor
|
|
|
+ *
|
|
|
+ * @param string|array $message The error message.
|
|
|
+ * @param int $code The error code.
|
|
|
+ */
|
|
|
public function __construct($message, $code = 500) {
|
|
|
if (is_array($message)) {
|
|
|
$message += array('enabled' => true);
|
|
|
@@ -587,10 +593,10 @@ class FatalErrorException extends CakeException {
|
|
|
/**
|
|
|
* Constructor
|
|
|
*
|
|
|
- * @param string $message
|
|
|
- * @param integer $code
|
|
|
- * @param string $file
|
|
|
- * @param integer $line
|
|
|
+ * @param string $message The error message.
|
|
|
+ * @param integer $code The error code.
|
|
|
+ * @param string $file The file the error occurred in.
|
|
|
+ * @param integer $line The line the error occurred on.
|
|
|
*/
|
|
|
public function __construct($message, $code = 500, $file = null, $line = null) {
|
|
|
parent::__construct($message, $code);
|