mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-11 01:33:11 +08:00
Refactored exceptions to properly use package exceptions
This commit is contained in:
@@ -20,7 +20,7 @@ class RestUtils
|
||||
const NOT_FOUND_ERROR = 'NOT_FOUND';
|
||||
const UNKNOWN_ERROR = 'UNKNOWN_ERROR';
|
||||
|
||||
public static function getRestErrorCodeFromException(Common\ExceptionInterface $e)
|
||||
public static function getRestErrorCodeFromException(\Throwable $e)
|
||||
{
|
||||
switch (true) {
|
||||
case $e instanceof Core\InvalidShortCodeException:
|
||||
|
||||
Reference in New Issue
Block a user