Add custom exceptions.
This commit is contained in:
parent
d168265700
commit
0052ecd455
|
|
@ -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 {}
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
<?php
|
||||
|
||||
namespace wellrested\exceptions;
|
||||
|
||||
/**
|
||||
* Top level class for custom exceptions thrown by Well RESTed.
|
||||
*/
|
||||
class WellrestedException extends \Exception {}
|
||||
|
||||
?>
|
||||
Loading…
Reference in New Issue