webCOMAND

io_comand\exception (COMAND Exception)

The base COMAND exception class, which can be used to catch all COMAND-related exceptions with code like the following.

try {
    // some API code...
} catch(\io_comand\exception $e) {
    echo('There was a COMAND exception: ' . $e->getMessage());
} catch(\exception $e) {
    echo('There was a non-COMAND exception: ' . $e->getMessage());
}

More Specific Exceptions

The following classes extend exception, in case you would like to only catch more specific exceptions.