|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.bea.wli.worklist.api.ManagementException
com.bea.wli.worklist.api.ValidationException
public class ValidationException
Mainly used by various public Worklist (session) beans to indicate caller that there was an user input error. The transaction if created by the user will not be rolled back unless some DB changes were made prior to throwing this exception.
Constructor Summary | |
---|---|
ValidationException()
Default constructor |
|
ValidationException(String message)
Construct a new ValidationException exception with
a message. |
|
ValidationException(String message,
Throwable except)
Construct a new ValidationException exception
wrapping an underlying exception and providing a message. |
|
ValidationException(Throwable except)
Construct a new ValidationException exception
wrapping an underlying exception. |
Method Summary | |
---|---|
Exception |
getException()
Returns the underlying exception, if this exception wraps another exception. |
SystemProperty |
getPropertyInError()
Returns the field that is in error. |
String[] |
getUserPropertyNameInError()
Returns the names of the user defined field if the field in error is of type Field.USER_PROPERTY |
boolean |
isSystemPropertyInError()
Indicates if the error was on a system property. |
void |
setPropertyInError(SystemProperty field)
The system property that is in error. |
void |
setUserPropertyNameInError(String[] names)
Names of the user property that is in error. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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 ValidationException()
public ValidationException(String message, Throwable except)
ValidationException
exception
wrapping an underlying exception and providing a message.
message
- The exception messageexcept
- The underlying exceptionpublic ValidationException(String message)
ValidationException
exception with
a message.
message
- The exception messagepublic ValidationException(Throwable except)
ValidationException
exception
wrapping an underlying exception.
except
- The underlying exceptionMethod Detail |
---|
public Exception getException()
getException
in class ManagementException
public boolean isSystemPropertyInError()
public void setPropertyInError(SystemProperty field)
field
- public SystemProperty getPropertyInError()
public String[] getUserPropertyNameInError()
Field.USER_PROPERTY
public void setUserPropertyNameInError(String[] names)
Field.USER_PROPERTY
names
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |