Move HttpExceptions to new namespace.
This commit is contained in:
parent
51e1be92fd
commit
d95498bcae
|
|
@ -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"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
Loading…
Reference in New Issue