|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.redhat.rhn.common.RhnRuntimeException
com.redhat.rhn.common.validator.ValidatorException
public class ValidatorException
A RuntimeException indicating a fatal failure trying to use the ValidatorService
| Constructor Summary | |
|---|---|
ValidatorException(java.lang.String message)
Constructor |
|
ValidatorException(java.lang.String message,
java.lang.Throwable cause)
Constructor |
|
ValidatorException(ValidatorResult valResult)
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ValidatorException(java.lang.String message)
message - exception message
public 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.| Method Detail |
|---|
public 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.Throwablepublic ValidatorResult getResult()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||