Try/Catch
A try/catch
construct it's used to try an unsafe block of code and catch any unexpected errors.
The catch
branch is called only in case of a fatal error or when a die
statement is executed in the try
branch:
The try/catch
construct returns the result of the last statement from the first successfully executed branch.
Last updated