Exceptions
\SimPay\Laravel\Exceptions\SimPayExceptionLast updated
Every exception in our library is extended from:
\SimPay\Laravel\Exceptions\SimPayExceptionWhen response from our API is 401 or 403, \SimPay\Laravel\Exceptions\AuthorizationException is thrown;
When response from our API is 404, \SimPay\Laravel\Exceptions\ResourceNotFoundException is thrown (this will be also thrown, when SMS code does not exists);
When response from our API is 422, \SimPay\Laravel\Exceptions\ValidationFailedException is thrown (you can get errors by using $exception->errors().
If SimPayException is thrown, you may see errorCode, which may be useful for specific errors returned (eg. BLIK Alias already registered, invalid BLIK T6 code).
errorCode may be a string or null
Last updated