|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.opensubsystems.core.error.OSSException
org.opensubsystems.core.error.OSSMultiException
org.opensubsystems.core.error.OSSInvalidDataException
public class OSSInvalidDataException
Exception thrown when there was a problem with invalid data asked to be processed. Example of problems are overflow (length limit for String exceeded, range limit for int exceeded, ...) or in case of unique constrains problems (unique login name, unique file name, ...). This can occur when user enters some data, which do not satisfy the constraints set by business logic or persistence layer.
| Field Summary | |
|---|---|
protected Messages |
m_errorMessages
Error messages for all invalid data errors |
| Fields inherited from class org.opensubsystems.core.error.OSSMultiException |
|---|
m_lstExceptions |
| Constructor Summary | |
|---|---|
OSSInvalidDataException()
Create new exception |
|
OSSInvalidDataException(java.lang.String message)
Create new exception |
|
OSSInvalidDataException(java.lang.String message,
java.lang.Throwable cause)
Create new exception |
|
OSSInvalidDataException(java.lang.Throwable cause)
Create new exception |
|
| Method Summary | |
|---|---|
static OSSInvalidDataException |
addException(OSSInvalidDataException inputException,
java.lang.Object messageCategory,
java.lang.String strMessage)
Adds message to an exiting exception or if that exception doesn't exists create a new one, add the message to it and return the newly created exception. |
static OSSInvalidDataException |
addException(OSSInvalidDataException inputException,
java.lang.Object messageCategory,
java.lang.String strMessage,
java.lang.Throwable thr)
Adds message to an exiting exception or if that exception doesn't exists create a new one, add the message to it and return the newly created exception. |
Messages |
getErrorMessages()
|
void |
setErrorMessages(Messages errorMessages)
|
| Methods inherited from class org.opensubsystems.core.error.OSSMultiException |
|---|
add, initCause, printStackTrace, printStackTrace, printStackTrace, toString |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, setStackTrace |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Messages m_errorMessages
| Constructor Detail |
|---|
public OSSInvalidDataException()
public OSSInvalidDataException(java.lang.String message)
message - - message to display
public OSSInvalidDataException(java.lang.String message,
java.lang.Throwable cause)
message - - message to displaycause - - cause for errorpublic OSSInvalidDataException(java.lang.Throwable cause)
cause - - cause for error| Method Detail |
|---|
public Messages getErrorMessages()
public void setErrorMessages(Messages errorMessages)
errorMessages - - Messages
public static OSSInvalidDataException addException(OSSInvalidDataException inputException,
java.lang.Object messageCategory,
java.lang.String strMessage)
inputException - - exception to add message to or null if the exception
doesn't existmessageCategory - - message category to add the message to (see Messages
class)strMessage - - message to add
public static OSSInvalidDataException addException(OSSInvalidDataException inputException,
java.lang.Object messageCategory,
java.lang.String strMessage,
java.lang.Throwable thr)
inputException - - exception to add message to or null if the exception
doesn't existmessageCategory - - message category to add the message to (see Messages
class)strMessage - - message to addthr - - exception which cause the error
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||