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": {
"psr-4": { "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
*/
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.
*/
class HttpException extends WellRESTedException
class HttpException extends Exception
{
/** @var int HTTP Status Code */
protected $code = 500;