Add custom exceptions.

This commit is contained in:
PJ Dietz 2012-11-29 14:40:46 -05:00
parent d168265700
commit 0052ecd455
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,12 @@
<?php
namespace wellrested\exceptions;
require_once(dirname(__FILE__) . '/WellrestedException.inc.php');
/**
* Exception related to a cURL operation. The message and code should correspond
* to the cURL error and error number that caused the excpetion.
*
*/
class CurlException extends WellrestedException {}

View File

@ -0,0 +1,10 @@
<?php
namespace wellrested\exceptions;
/**
* Top level class for custom exceptions thrown by Well RESTed.
*/
class WellrestedException extends \Exception {}
?>