-
Notifications
You must be signed in to change notification settings - Fork 315
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed an issue with Exception handling.
- Loading branch information
Travis Swientek
committed
Aug 21, 2013
1 parent
56b5057
commit f8babb0
Showing
4 changed files
with
9 additions
and
9 deletions.
There are no files selected for viewing
6 changes: 0 additions & 6 deletions
6
src/Mailgun/Connection/Exceptions/MissingRequiredMIMEParameters.php
This file was deleted.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
src/Mailgun/Connection/Exceptions/MissingRequiredParameters.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?php | ||
namespace Mailgun\Connection\Exceptions; | ||
|
||
class MissingRequiredParameters extends \Exception{} | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
//Common Exception Messages | ||
const EXCEPTION_INVALID_CREDENTIALS = "Your credentials are incorrect."; | ||
const EXCEPTION_GENERIC_HTTP_ERROR = "An HTTP Error has occurred! Check your network connection and try again."; | ||
const EXCEPTION_MISSING_REQUIRED_MIME_PARAMETERS = "The parameters passed to the API were invalid. This might be a bug! Notify [email protected]."; | ||
const EXCEPTION_MISSING_REQUIRED_PARAMETERS = "The parameters passed to the API were invalid. This might be a bug! Notify [email protected]."; | ||
const EXCEPTION_MISSING_ENDPOINT = "The endpoint you've tried to access does not exist. This might be a bug! Notify [email protected]."; | ||
const TOO_MANY_RECIPIENTS = "You've exceeded the maximum recipient count (1,000) on the to field with autosend disabled."; | ||
const INVALID_PARAMETER_NON_ARRAY = "The parameter you've passed in position 2 must be an array."; | ||
|