Package com.storedobject.common
Interface ErrorHandler
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Represents a functional interface for handling errors or exceptions.
Implementations of this interface define a single method to process
a given throwable object.
This interface can be used for centralized or custom error processing
logic in applications, allowing developers to specify how various
types of exceptions should be handled.
- Author:
- Syam
-
Method Summary
-
Method Details
-
handle
Handles the given throwable, allowing custom processing or logging of the error.- Parameters:
error- the throwable to be handled; must not be null
-