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:
@@ -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.
|
||||
|
Reference in New Issue
Block a user