Exception Handling in PHP

Exceptions are important to control over error handling. Exception handling is used to change the execution of a code if a specified error occurs.


Exception Handling in Java: Understanding throws with Example

A quick look at the program tells us that the CentralizedExceptionHandlerApp class has three methods:

Exception Handling in Java: Checked/Unchecked Exceptions and throws keyword

Sometimes, the checked exceptions are also called compile-time exceptions because our code would not compile if we do not handle a checked exception.

Exception Handling in Java: Printing a Stack Trace

In this post we are going to learn a very common practice developers usually follow when they are dealing with Exception handling.

Exception Handling in Java: Asynchronous Exceptions and Important guidelines

The exceptions we have seen so far are synchronous in nature, in the sense that we know the point in the program where they occur and when they happen, and we process them immediately in the same thread.

Exception Handling in Java: Basic Concepts

Looking at Murphy’s Law, “If anything simply cannot go wrong, it will anyway,” we know that we should always prepare ourself for the worst-case scenario.

Exception Handling in Java: try-catch statements

We can easily catch and handle errors in our programs so that they do not terminate abnormally.

Exception Handling in Java: Combining Exception Handlers

In my previous post, we have learnt how we can handle multiple exceptions in our code by providing multiple numbers of catch block specific to a particular exception.

Exception Handling in Java: The finally Statement

In the program example discussed in the previous post (multiple catch blocks section), we made a URL connection to read the home page contents from the user-specified URL.


Enter your email address here always to be updated. We promise not to spam!