class CnicException extends Exception (View source)

Base class for every exception the CNIC SDK throws.

All SDK-specific exceptions extend this base, which in turn extends the SPL {\Exception}. Consumers can therefore catch any SDK failure in one place with catch (\CNIC\Exception\CnicException $e) while pre-existing catch (\Exception $e) code keeps working unchanged — the hierarchy is purely additive and non-breaking.