-
-
Save tsh-code/2770a38586abeebe09e89210751b82a9 to your computer and use it in GitHub Desktop.
Calculator Exception Usage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
try { | |
$loanSchedule = $calculator->calculate($loanDeptorRequest); | |
} catch (CalculatorException $e) { | |
// log the event or sth else | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment