Move HttpExceptions to new namespace.

This commit is contained in:
PJ Dietz 2015-03-24 20:32:30 -04:00
parent 51e1be92fd
commit d95498bcae
2 changed files with 4 additions and 4 deletions

View File

@ -23,6 +23,6 @@
"autoload": { "autoload": {
"psr-4": { "WellRESTed\\" : "src/" }, "psr-4": { "WellRESTed\\" : "src/" },
"psr-0": { "pjdietz\\WellRESTed": "src/" }, "psr-0": { "pjdietz\\WellRESTed": "src/" },
"classmap": ["src/pjdietz/WellRESTed/Exceptions/HttpExceptions.php"] "classmap": ["src/HttpExceptions.php"]
} }
} }

View File

@ -15,14 +15,14 @@
* @license MIT * @license MIT
*/ */
namespace pjdietz\WellRESTed\Exceptions\HttpExceptions; namespace WellRESTed\HttpExceptions;
use pjdietz\WellRESTed\Exceptions\WellRESTedException; use Exception;
/** /**
* Base exception for HTTP-related errors. Also represents a 500 Internal Server error. * Base exception for HTTP-related errors. Also represents a 500 Internal Server error.
*/ */
class HttpException extends WellRESTedException class HttpException extends Exception
{ {
/** @var int HTTP Status Code */ /** @var int HTTP Status Code */
protected $code = 500; protected $code = 500;