File tree 1 file changed +3
-0
lines changed
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 21
21
use Apisearch \Exception \InvalidTokenException ;
22
22
use Apisearch \Exception \ResourceExistsException ;
23
23
use Apisearch \Exception \ResourceNotAvailableException ;
24
+ use Apisearch \Exception \TooManyRequestsException ;
24
25
25
26
/**
26
27
* Class HttpResponsesToException.
@@ -57,6 +58,8 @@ protected static function throwTransportableExceptionIfNeeded(
57
58
throw new ResourceExistsException ($ response ['body ' ]['message ' ]);
58
59
case ForbiddenException::getTransportableHTTPError ():
59
60
throw new ForbiddenException ($ response ['body ' ]['message ' ]);
61
+ case TooManyRequestsException::getTransportableHTTPError ();
62
+ throw new TooManyRequestsException ($ response ['body ' ]['message ' ]);
60
63
case ConnectionException::getTransportableHTTPError ():
61
64
throw new ConnectionException ('Apisearch returned an internal error code [500] - ' . $ response ['body ' ]['message ' ]);
62
65
}
You can’t perform that action at this time.
0 commit comments