collects and manage failures occuring during script execution The main purpose is allowing to manage the display messages externaly from functions or objects. This strengthens encapsulation principle
function my_function() { if ($succeeds) return true; else return claro_failure::set_failure('my_failure_type'); }
if ( my_function() ) { SOME CODE ... } else { $failure_type = claro_failure::get_last_failure() }
1.6.3