Class DataAccessException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- cern.nxcals.api.backport.domain.exceptions.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 datasourcestatic org.apache.commons.lang3.tuple.Pair<java.lang.Integer,java.lang.String>
DATA_EXCEPTION
Indicates a problem with the datastatic org.apache.commons.lang3.tuple.Pair<java.lang.Integer,java.lang.String>
DERIVATION_ERROR
When there is something wrong with a derivation algorithmstatic 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 recordstatic 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 profilestatic org.apache.commons.lang3.tuple.Pair<java.lang.Integer,java.lang.String>
INTERNAL_ERROR
Indicates an internal system or API errorstatic 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 JNDIstatic org.apache.commons.lang3.tuple.Pair<java.lang.Integer,java.lang.String>
LOGIN_EXCEPTION
Indicates a problem with the supplied login credentialsstatic org.apache.commons.lang3.tuple.Pair<java.lang.Integer,java.lang.String>
META_EXCEPTION
Indicates a problem with the metadatastatic org.apache.commons.lang3.tuple.Pair<java.lang.Integer,java.lang.String>
PLSQL_EXCEPTION
Indicates a problem with some PL/SQL execution at the datasourcestatic org.apache.commons.lang3.tuple.Pair<java.lang.Integer,java.lang.String>
SERVICE_EXCEPTION
All servers are downstatic org.apache.commons.lang3.tuple.Pair<java.lang.Integer,java.lang.String>
SQL_EXCEPTION
Indicates a problem with some SQL execution at the datasourcestatic org.apache.commons.lang3.tuple.Pair<java.lang.Integer,java.lang.String>
TOO_MUCH_DATA
When there is too much data to extractstatic org.apache.commons.lang3.tuple.Pair<java.lang.Integer,java.lang.String>
UNAUTHORIZED_APPLICATION
When there is too much data to extractstatic 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 bugsstatic 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()
-
-
-
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
-
-
Method Detail
-
getErrorCode
public int getErrorCode()
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessage
in classjava.lang.Throwable
-
appendMessage
public void appendMessage(java.lang.String extraInfo)
-
throwUnreachableCodeException
public static void throwUnreachableCodeException()
-
-