Allow exceptions to throw their own error codes from within.

Temp work-around for tons of logic until upgrade to 5.5 is done.
This commit is contained in:
Dane Everitt
2017-09-24 12:32:29 -05:00
parent c43ab595cf
commit 0f0c319ec0
2 changed files with 10 additions and 1 deletions

View File

@@ -26,4 +26,11 @@ namespace Pterodactyl\Exceptions\Repository;
class RecordNotFoundException extends \Exception
{
/**
* @return int
*/
public function getStatusCode()
{
return 404;
}
}