1
0
mirror of https://github.com/restoreddev/phpapprentice.git synced 2025-08-10 16:54:35 +02:00

Continuing transition to hugo

This commit is contained in:
Andrew Davis
2019-07-13 08:48:55 -05:00
parent e09557cf2c
commit 2ae912aada
36 changed files with 224 additions and 401 deletions

View File

@@ -1,3 +1,11 @@
+++
title = "Exceptions"
description = "Throwing errors"
tags = ["php", "exception"]
slug = "exceptions"
previous = "abstract.html"
next = "web/http.html"
+++
Sometimes things go wrong when someone uses your code. How do we handle this situation?
PHP has Exceptions to define errors and the ability to `throw` them to stop code
execution and tell the user of your code that something is wrong.