Class ErrorNodeNull
Object
org.anchoranalysis.mpp.proposer.error.ErrorNode
org.anchoranalysis.mpp.proposer.error.ErrorNodeNull
- All Implemented Interfaces:
Serializable
public class ErrorNodeNull extends ErrorNode
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:
- Serialized Form
-
Method Summary
Modifier and Type Method Description ErrorNodeadd(String errorMessage)Adds an error message to this node.static ErrorNodeNullinstance()Gets the singleton instance of ErrorNodeNull.