Class Failure
- java.lang.Object
-
- be.sddevelopment.commons.validation.Failure
-
public class Failure extends Object
Value Object used to return issues found when evaluating
Fallible
assertions.
Depending on theSeverity
of 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 class
Failure.FailureBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static Failure.FailureBuilder
failure()
failure.String
getErrorCode()
String
getReason()
Severity
getSeverity()
int
hashCode()
-
-
-
Method Detail
-
failure
public static Failure.FailureBuilder failure()
failure.
- Returns:
- a
Failure.FailureBuilder
object.
-
getSeverity
public Severity getSeverity()
-
getErrorCode
public String getErrorCode()
-
getReason
public String getReason()
-
-