<?php try { ... if (!condition) { throw new CustomExceptionOne('not condition 1'); } if (!condition2) { throw new CustomExceptionTwo('not condition 2'); } $return = true; } catch (\Throwable $t) { // do with $t $return = false; } finally { return $return; }
You have javascript disabled. You will not be able to edit any code.