OutageException.php
This file is part of the MultiFlexi package
https://github.com/VitexSoftware/php-vitexsoftware-rbczpremiumapi
(c) Vítězslav Dvořák http://vitexsoftware.com
For the full copyright and license information, please view the LICENSE file that was distributed with this source code.
Table of Contents
Classes
- OutageException
- Thrown when the RB API gateway itself reports being down, rather than rejecting the individual request. Raiffeisenbank's gateway signals this by returning HTTP 500 together with an `outage: yes` response header (seen on every endpoint, regardless of account/certificate/client) - distinct from a per-request 500 caused by bad input or a transient backend error. Extends ApiException (rather than plain \Exception) so that callers who already `catch (ApiException $exc)` around API calls catch this too, without needing a separate catch block, while still being able to catch this specifically to skip retries or surface a clearer "RB is down" message.