net.sf.staccatocommons.check
Class Check.VarFailure
java.lang.Object
net.sf.staccatocommons.check.Check.Failure
net.sf.staccatocommons.check.Check.VarFailure
- Enclosing class:
- Check<ExceptionType extends Throwable>
public static class Check.VarFailure
- extends Check.Failure
A check failure that contains the name and value of the variable that was
checked
- Author:
- flbulgarelli
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Check.VarFailure
public Check.VarFailure(String varName,
Object var,
String message)
- Creates a new
Check.VarFailure
- Parameters:
varName - the name of the variable checkedvar - the variable checkedmessage - the failure message
getVar
public Object getVar()
- Returns:
- the var
getVarName
public String getVarName()
- Returns:
- the varName
createSimpleMessage
public String createSimpleMessage()
- Returns:
- the failure message, which does not contain the variable name nor
value
createMessage
public String createMessage()
- Overrides:
createMessage in class Check.Failure
- Returns:
- the failure message, which contains the variable name and value