Skip to content

Instantly share code, notes, and snippets.

@loburets
Last active September 22, 2017 07:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save loburets/a67572c0ec80f0820dd6 to your computer and use it in GitHub Desktop.
Save loburets/a67572c0ec80f0820dd6 to your computer and use it in GitHub Desktop.
try catch sample
try {
} catch (\Exception $exception) {
echo 'Error (File: ' . $exception->getFile() . ':'
. $exception->getLine() . '): ' . $exception->getMessage();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment