diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-03-26 02:53:42 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-03-26 02:53:42 +0000 |
commit | 2152baa65c8e7dd3aa9f3f09d6d8261bc76a271b (patch) | |
tree | 579d0368b70b6bd04201d39f9d1ad097183ecb40 | |
parent | e3aab08f8d4e0a4016c073d1a9c2a760ce0b9a2e (diff) |
Normalize exception string format.
-rw-r--r-- | core/libraries/Sendmail.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/libraries/Sendmail.php b/core/libraries/Sendmail.php index a1092734..a9655791 100644 --- a/core/libraries/Sendmail.php +++ b/core/libraries/Sendmail.php @@ -52,7 +52,7 @@ class Sendmail_Core { break; case "header": if (count($value) != 2) { - throw new Exception("@todo INVALID HEADER PARAMETERS"); + throw new Exception("@todo INVALID_HEADER_PARAMETERS"); } $this->headers[$value[0]] = $value[1]; break; @@ -70,7 +70,7 @@ class Sendmail_Core { public function send() { if (empty($this->to)) { - throw new Exception("@todo TO IS REQUIRED FOR MAIL"); + throw new Exception("@todo TO_IS_REQUIRED_FOR_MAIL"); } $to = implode(", ", $this->to); $headers = array(); @@ -86,7 +86,7 @@ class Sendmail_Core { if (!$this->mail($to, $this->subject, $message, $headers)) { Kohana::log("error", wordwrap("Sending mail failed:\nTo: $to\n $this->subject\n" . "Headers: $headers\n $this->message")); - throw new Exception("@todo SEND MAIL FAILED"); + throw new Exception("@todo SEND_MAIL_FAILED"); } return $this; } |