try
{
read()
}
catch(\Base\Component\Throwable\ArgumentNullException $e) { }
catch(\Base\Component\Throwable\ArgumentEmptyException $e) { }
catch(\Base\Component\Throwable\ArgumentExpectedException $e) { }
catch(\Base\Component\Throwable\FieldNotFoundException $e) { }
catch(\Base\Component\Throwable\FieldAccessWriteException $e) { }
catch(\Base\Component\Throwable\FieldAccessLockedException $e) { }
// or
try
{
read()
}
catch(FileComponentException $e)
{
if($e->hasCatched('Base\Component\Throwable\ArgumentNullException'))
solution();
}
Comments