Class LocalisedBeanException

All Implemented Interfaces:
Serializable

public class LocalisedBeanException
extends AnchorCombinableException
Combines a chain of many exceptions into a single exception, searching for an ultimate cause and incorporating the messages from the chain into a single unified message.

To do this, all nested exceptions are traversed until null is found as a cause.

To determine the message string:

  1. If the exception is of class LocalisedBeanException, its message is added as a line.
  2. If the exception is another class, it is not included in the message string, but we keep on traversing.

To determine the cause:

  1. It finds the deep-most instance of LocalisedBeanException, and considers its {#link getCause()} as the cause.
Author:
Owen Feehan
See Also:
Serialized Form