- ⌂ exception
- Classes
io_comand\validation_exception
This exception class is thrown by cObject::validate() if the object is not valid, which is called internally by approve() and save().
Extends
Example
try {
    // some API code...
    $object->approve();
} catch(\io_comand\validation_exception $e) {
    echo('Object not valid: ' . $e->getMessage());
} catch(\exception $e) {
    echo('Non validation exception: ' . $e->getMessage());
}
 webCOMAND Docs
webCOMAND Docs API Reference
API Reference PHP API
PHP API io_comand
io_comand