checkers.source
Class Result.DiagMessage
java.lang.Object
checkers.source.Result.DiagMessage
- Enclosing class:
- Result
public static class Result.DiagMessage
- extends Object
A class that represents the diangosis messages.
DiagMessage
encapsulate the message key which would identify
the relevant standard error message according to the user locale.
The optional arguments are possible custom strings for the error
message.
Result.DiagMessage
protected Result.DiagMessage(String message,
Object[] args)
getMessageKey
public String getMessageKey()
- Returns:
- the message key of this DiagMessage
getArgs
public Object[] getArgs()
- Returns:
- the customized optional arguments for the message
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
toString
public String toString()
- Overrides:
toString
in class Object