You're right. Exception handling in Java is based on a chain of responsibility scheme In this template:
- The sender will not know which object in the chain will serve his request
- Each node in the chain can decide to execute a request -> catch an exception and
wrapping it with a special application exception - Each node can redirect a request -> exception exception for the caller
- None of the nodes can fulfill the request -> Leaves the job with the caller
Therefore, exception handling is a responsibility chain template.
source share