Nullpointer's Guide to Exceptional Documentation
Because, let's be real, exceptions are the best part of programming.
- What is an exception? A way to get out of doing real work.
- How do I handle an exception? With great care, because it's not like I have better things to do.
- What's the difference between an exception and an error? An exception is when you deliberately throw it to get out of work, an error is when the computer just does it to you.
You can also check the Throwing in the Towel section for more advanced techniques.
if (exception) {
print("I'm outta here!")
}