Class ErrorNodeNull
- All Implemented Interfaces:
Serializable
A singleton implementation of ErrorNode that does nothing with errors.
This class implements the Null Object pattern for ErrorNode, allowing error handling to be safely ignored when desired.
- Author:
- Owen Feehan
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionAdds an error message to this node.static ErrorNodeNull
instance()
Gets the singleton instance of ErrorNodeNull.
-
Method Details
-
instance
Gets the singleton instance of ErrorNodeNull.- Returns:
- the ErrorNodeNull instance
-
add
Description copied from class:ErrorNode
Adds an error message to this node.
-