public class ValidatorException extends RhnRuntimeException
Constructor and Description |
---|
ValidatorException(java.lang.String message)
Constructor
|
ValidatorException(java.lang.String message,
java.lang.String msgArg)
Constructor
|
ValidatorException(java.lang.String message,
java.lang.Throwable cause)
Constructor
|
ValidatorException(ValidatorResult valResult) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMessage() |
ValidatorResult |
getResult() |
static void |
raiseException(java.lang.String key,
java.lang.Object... args)
Helper method to raise a ValidatorException given a single error msg
|
public ValidatorException(java.lang.String message)
message
- exception messagepublic ValidatorException(java.lang.String message, java.lang.Throwable cause)
message
- exception messagecause
- the cause (which is saved for later retrieval
by the Throwable.getCause() method). (A null value is
permitted, and indicates that the cause is nonexistent or
unknown.)public ValidatorException(ValidatorResult valResult)
valResult
- attach a validator result to the exception.public ValidatorException(java.lang.String message, java.lang.String msgArg)
message
- localized message idmsgArg
- message argumentspublic static void raiseException(java.lang.String key, java.lang.Object... args)
key
- the msg keyargs
- the args that go with the key.public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public ValidatorResult getResult()