Class DataAccessException

  • All Implemented Interfaces:
    java.io.Serializable

    public final class DataAccessException
    extends java.lang.RuntimeException
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.apache.commons.lang3.tuple.Pair<java.lang.Integer,​java.lang.String> CONNECTION_EXCEPTION
      Indicates a problem connecting to the measurement datasource
      static org.apache.commons.lang3.tuple.Pair<java.lang.Integer,​java.lang.String> DATA_EXCEPTION
      Indicates a problem with the data
      static org.apache.commons.lang3.tuple.Pair<java.lang.Integer,​java.lang.String> DERIVATION_ERROR
      When there is something wrong with a derivation algorithm
      static org.apache.commons.lang3.tuple.Pair<java.lang.Integer,​java.lang.String> DUPLICATE_DATA_EXCEPTION
      Indicates that an attempt has been made to load at least one duplicate time series data record
      static org.apache.commons.lang3.tuple.Pair<java.lang.Integer,​java.lang.String> ILLEGAL_ACCESS  
      static org.apache.commons.lang3.tuple.Pair<java.lang.Integer,​java.lang.String> ILLEGAL_ARGUMENT
      Related to java reflexion when querying the user profile
      static org.apache.commons.lang3.tuple.Pair<java.lang.Integer,​java.lang.String> INTERNAL_ERROR
      Indicates an internal system or API error
      static org.apache.commons.lang3.tuple.Pair<java.lang.Integer,​java.lang.String> INVOCATION_TRAGET  
      static org.apache.commons.lang3.tuple.Pair<java.lang.Integer,​java.lang.String> JNDI_EXCEPTION
      Indicates that a naming exception has occured at the level of JNDI
      static org.apache.commons.lang3.tuple.Pair<java.lang.Integer,​java.lang.String> LOGIN_EXCEPTION
      Indicates a problem with the supplied login credentials
      static org.apache.commons.lang3.tuple.Pair<java.lang.Integer,​java.lang.String> META_EXCEPTION
      Indicates a problem with the metadata
      static org.apache.commons.lang3.tuple.Pair<java.lang.Integer,​java.lang.String> PLSQL_EXCEPTION
      Indicates a problem with some PL/SQL execution at the datasource
      static org.apache.commons.lang3.tuple.Pair<java.lang.Integer,​java.lang.String> SERVICE_EXCEPTION
      All servers are down
      static org.apache.commons.lang3.tuple.Pair<java.lang.Integer,​java.lang.String> SQL_EXCEPTION
      Indicates a problem with some SQL execution at the datasource
      static org.apache.commons.lang3.tuple.Pair<java.lang.Integer,​java.lang.String> TOO_MUCH_DATA
      When there is too much data to extract
      static org.apache.commons.lang3.tuple.Pair<java.lang.Integer,​java.lang.String> UNAUTHORIZED_APPLICATION
      When there is too much data to extract
      static org.apache.commons.lang3.tuple.Pair<java.lang.Integer,​java.lang.String> UNREACHABLE_CODE
      An exception related to code that should never be reached, usually due to programming bugs
      static DataAccessException UNREACHABLE_CODE_EXCEPTION  
    • Constructor Summary

      Constructors 
      Constructor Description
      DataAccessException​(org.apache.commons.lang3.tuple.Pair<java.lang.Integer,​java.lang.String> errorCode, java.lang.String message)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void appendMessage​(java.lang.String extraInfo)  
      int getErrorCode()  
      java.lang.String getMessage()  
      static void throwUnreachableCodeException()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • UNREACHABLE_CODE_EXCEPTION

        public static final DataAccessException UNREACHABLE_CODE_EXCEPTION
      • SQL_EXCEPTION

        public static final org.apache.commons.lang3.tuple.Pair<java.lang.Integer,​java.lang.String> SQL_EXCEPTION
        Indicates a problem with some SQL execution at the datasource
      • PLSQL_EXCEPTION

        public static final org.apache.commons.lang3.tuple.Pair<java.lang.Integer,​java.lang.String> PLSQL_EXCEPTION
        Indicates a problem with some PL/SQL execution at the datasource
      • META_EXCEPTION

        public static final org.apache.commons.lang3.tuple.Pair<java.lang.Integer,​java.lang.String> META_EXCEPTION
        Indicates a problem with the metadata
      • CONNECTION_EXCEPTION

        public static final org.apache.commons.lang3.tuple.Pair<java.lang.Integer,​java.lang.String> CONNECTION_EXCEPTION
        Indicates a problem connecting to the measurement datasource
      • LOGIN_EXCEPTION

        public static final org.apache.commons.lang3.tuple.Pair<java.lang.Integer,​java.lang.String> LOGIN_EXCEPTION
        Indicates a problem with the supplied login credentials
      • DATA_EXCEPTION

        public static final org.apache.commons.lang3.tuple.Pair<java.lang.Integer,​java.lang.String> DATA_EXCEPTION
        Indicates a problem with the data
      • INTERNAL_ERROR

        public static final org.apache.commons.lang3.tuple.Pair<java.lang.Integer,​java.lang.String> INTERNAL_ERROR
        Indicates an internal system or API error
      • DUPLICATE_DATA_EXCEPTION

        public static final org.apache.commons.lang3.tuple.Pair<java.lang.Integer,​java.lang.String> DUPLICATE_DATA_EXCEPTION
        Indicates that an attempt has been made to load at least one duplicate time series data record
      • JNDI_EXCEPTION

        public static final org.apache.commons.lang3.tuple.Pair<java.lang.Integer,​java.lang.String> JNDI_EXCEPTION
        Indicates that a naming exception has occured at the level of JNDI
      • ILLEGAL_ARGUMENT

        public static final org.apache.commons.lang3.tuple.Pair<java.lang.Integer,​java.lang.String> ILLEGAL_ARGUMENT
        Related to java reflexion when querying the user profile
      • ILLEGAL_ACCESS

        public static final org.apache.commons.lang3.tuple.Pair<java.lang.Integer,​java.lang.String> ILLEGAL_ACCESS
      • INVOCATION_TRAGET

        public static final org.apache.commons.lang3.tuple.Pair<java.lang.Integer,​java.lang.String> INVOCATION_TRAGET
      • TOO_MUCH_DATA

        public static final org.apache.commons.lang3.tuple.Pair<java.lang.Integer,​java.lang.String> TOO_MUCH_DATA
        When there is too much data to extract
      • UNAUTHORIZED_APPLICATION

        public static final org.apache.commons.lang3.tuple.Pair<java.lang.Integer,​java.lang.String> UNAUTHORIZED_APPLICATION
        When there is too much data to extract
      • DERIVATION_ERROR

        public static final org.apache.commons.lang3.tuple.Pair<java.lang.Integer,​java.lang.String> DERIVATION_ERROR
        When there is something wrong with a derivation algorithm
      • SERVICE_EXCEPTION

        public static final org.apache.commons.lang3.tuple.Pair<java.lang.Integer,​java.lang.String> SERVICE_EXCEPTION
        All servers are down
      • UNREACHABLE_CODE

        public static final org.apache.commons.lang3.tuple.Pair<java.lang.Integer,​java.lang.String> UNREACHABLE_CODE
        An exception related to code that should never be reached, usually due to programming bugs
    • Constructor Detail

      • DataAccessException

        public DataAccessException​(org.apache.commons.lang3.tuple.Pair<java.lang.Integer,​java.lang.String> errorCode,
                                   java.lang.String message)
    • Method Detail

      • getErrorCode

        public int getErrorCode()
      • getMessage

        public java.lang.String getMessage()
        Overrides:
        getMessage in class java.lang.Throwable
      • appendMessage

        public void appendMessage​(java.lang.String extraInfo)
      • throwUnreachableCodeException

        public static void throwUnreachableCodeException()