.. rst-class:: phpdoctorst .. role:: php(code) :language: php CifException ============ .. php:namespace:: Firstred\PostNL\Exception .. php:class:: CifException .. rst-class:: phpdoc-description | Class CifException\. | Thrown when the CIF API has a fatal error\. :Parent: :php:class:`Firstred\\PostNL\\Exception\\ApiException` Summary ------- Methods ~~~~~~~ * :php:meth:`public \_\_construct\($message, $code, $previous\)` * :php:meth:`public getMessagesDescriptionsAndCodes\(\)` Properties ---------- .. php:attr:: protected static messages :Type: array Methods ------- .. rst-class:: public .. php:method:: public __construct( $message=\'\', $code=0, $previous=null) .. rst-class:: phpdoc-description | CifException constructor\. :Parameters: * **$message** (string | string[]) In case of multiple errors, the format looks like: [ 'description' => string , 'message' => string , 'code' => int ] The code param will be discarded if `$message` is an array * **$code** (int) * **$previous** (:any:`Throwable ` | null) .. rst-class:: public .. php:method:: public getMessagesDescriptionsAndCodes() .. rst-class:: phpdoc-description | Get error messages and codes\. :Returns: array | string | string[]