Class DAValidateException

java.lang.Object
java.lang.Throwable
java.lang.Exception
overit.geocall.da.DAValidateException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DAOptimisticLockException

public class DAValidateException extends Exception
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 Details

    • _oo

      protected final transient Object[] _oo
    • _mm

      protected final transient Map _mm
    • _code

      protected final transient Code _code
  • Constructor Details

    • DAValidateException

      public DAValidateException(String format)
      Creates the exception containing the error message passed as parameter
      Parameters:
      format - The error message attached to the exception
    • DAValidateException

      public DAValidateException(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 params
      Parameters:
      format - The error message attached to the exception
      oo - The objects array to be stored
    • DAValidateException

      public 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 parameter
      Parameters:
      format - The error message attached to the exception
      mm - The map to be stored
    • DAValidateException

      public DAValidateException(Code code)
      Creates the exception containing a specific error message created starting from the Code passed as parameter
      Parameters:
      code - The code used to create the error message and to be stored
    • DAValidateException

      public DAValidateException(Code code, Object[] oo)
      Creates the exception containing a specific error message created starting from the Code passed 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 exception
      oo - The objects array to be stored
    • DAValidateException

      public DAValidateException(Code code, Map mm)
      Creates the exception containing a specific error message created starting from the Code passed 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 exception
      mm - The map to be stored
    • DAValidateException

      public DAValidateException(String message, Throwable cause)
      Constructs a new DAValidateException with 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 the getMessage() method).
      cause - the cause (which is saved for later retrieval by the getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown).
  • Method Details

    • toString

      public String toString()
      Retrieves the string representation of the exception based on the global objects array and map
      Overrides:
      toString in class Throwable
      Returns:
      The string representation of the exception
    • getParams

      public Object[] getParams()
      Retrieves the global array of parameters of the specific exception
      Returns:
      The global objects array of parameters
    • getMap

      public Map getMap()
      Retrieves the global map of the specific exception
      Returns:
      The global map
    • getCode

      public Code getCode()
      Retrieves the global code of the specific exception
      Returns:
      The code
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object