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:
parent
c43ab595cf
commit
0f0c319ec0
2 changed files with 10 additions and 1 deletions
|
@ -26,4 +26,11 @@ namespace Pterodactyl\Exceptions\Repository;
|
|||
|
||||
class RecordNotFoundException extends \Exception
|
||||
{
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getStatusCode()
|
||||
{
|
||||
return 404;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue