Package overit.geocall.da
Class DAValidateException
java.lang.Object
java.lang.Throwable
java.lang.Exception
overit.geocall.da.DAValidateException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DAOptimisticLockException
The class represent an exception that occurs in the data validation phase performed by the DABase before every insert, update or delete operations.
These kind of exceptions must be mapped into an appropriate alert that must be shown to the user.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDAValidateException(String format) Creates the exception containing the error message passed as parameterDAValidateException(String format, Object[] oo) Creates the exception containing the error message passed as first parameter and set the global objects array with the one passed as second parameter, which contains the paramsDAValidateException(String message, Throwable cause) Constructs a newDAValidateExceptionwith the specified detail message and cause.DAValidateException(String format, Map mm) Creates the exception containing the error message passed as first parameter and set the global map with the one passed as second parameterDAValidateException(Code code) Creates the exception containing a specific error message created starting from theCodepassed as parameterDAValidateException(Code code, Object[] oo) Creates the exception containing a specific error message created starting from theCodepassed as first parameter and set the global objects array with the one passed as second parameter, which contains the paramsDAValidateException(Code code, Map mm) Creates the exception containing a specific error message created starting from theCodepassed as first parameter and set the global map with the one passed as second parameter -
Method Summary
Modifier and TypeMethodDescriptionbooleangetCode()Retrieves the global code of the specific exceptiongetMap()Retrieves the global map of the specific exceptionObject[]Retrieves the global array of parameters of the specific exceptioninthashCode()toString()Retrieves the string representation of the exception based on the global objects array and mapMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Field Details
-
_oo
-
_mm
-
_code
-
-
Constructor Details
-
DAValidateException
Creates the exception containing the error message passed as parameter- Parameters:
format- The error message attached to the exception
-
DAValidateException
Creates the exception containing the error message passed as first parameter and set the global objects array with the one passed as second parameter, which contains the params- Parameters:
format- The error message attached to the exceptionoo- The objects array to be stored
-
DAValidateException
Creates the exception containing the error message passed as first parameter and set the global map with the one passed as second parameter- Parameters:
format- The error message attached to the exceptionmm- The map to be stored
-
DAValidateException
Creates the exception containing a specific error message created starting from theCodepassed as parameter- Parameters:
code- The code used to create the error message and to be stored
-
DAValidateException
Creates the exception containing a specific error message created starting from theCodepassed as first parameter and set the global objects array with the one passed as second parameter, which contains the params- Parameters:
code- The code used to create the error message attached to the exceptionoo- The objects array to be stored
-
DAValidateException
Creates the exception containing a specific error message created starting from theCodepassed as first parameter and set the global map with the one passed as second parameter- Parameters:
code- The code used to create the error message attached to the exceptionmm- The map to be stored
-
DAValidateException
Constructs a newDAValidateExceptionwith the specified detail message and cause.Note that the detail message associated with cause is not automatically incorporated in this exception's detail message.
- Parameters:
message- the detail message (which is saved for later retrieval by thegetMessage()method).cause- the cause (which is saved for later retrieval by thegetCause()method). (A null value is permitted, and indicates that the cause is nonexistent or unknown).
-
-
Method Details
-
toString
Retrieves the string representation of the exception based on the global objects array and map -
getParams
Retrieves the global array of parameters of the specific exception- Returns:
- The global objects array of parameters
-
getMap
Retrieves the global map of the specific exception- Returns:
- The global map
-
getCode
Retrieves the global code of the specific exception- Returns:
- The code
-
equals
-
hashCode
public int hashCode()
-