Class Failure
- java.lang.Object
 - 
- be.sddevelopment.commons.validation.Failure
 
 
- 
public class Failure extends Object
Value Object used to return issues found when evaluating
Fallibleassertions.
Depending on theSeverityof this object, the author can choose to take the appropriate action (e.g. recover, hard fail, skip execution, ...).- Since:
 - 1.0.0
 - Version:
 - 1.0.0
 - Author:
 - Stijn Dejongh
 
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFailure.FailureBuilder 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static Failure.FailureBuilderfailure()failure.StringgetErrorCode()StringgetReason()SeveritygetSeverity()inthashCode() 
 - 
 
- 
- 
Method Detail
- 
failure
public static Failure.FailureBuilder failure()
failure.
- Returns:
 - a 
Failure.FailureBuilderobject. 
 
- 
getSeverity
public Severity getSeverity()
 
- 
getErrorCode
public String getErrorCode()
 
- 
getReason
public String getReason()
 
 - 
 
 -