|
||||||||||
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.dvb.tvanytime.metadata.DatabaseException
public class DatabaseException
Exception that is thrown when a database error occurs.
Field Summary | |
---|---|
static int |
CONNECTION_FAILED
Value of error code returned when a connection has been refused or has failed. |
static int |
FATAL_ERROR
Value of error code. |
static int |
INVALID_FIELD_ID
Value of error code. |
static int |
INVALID_FIELD_VALUE
Value of error code. |
static int |
INVALID_REQUEST
Value of error code. |
static int |
UNABLE_TO_CONNECT
Value of error code returned when the client is unable to connect to a remote server. |
static int |
UNABLE_TO_LOCATE_SERVICE
Value of error code returned when a metadata service cannot be located. |
static int |
UNABLE_TO_TUNE
Value of error code returned when tuning is required but is not permitted. |
static int |
UNRECOGNIZED_VERSION
Value of error code. |
static int |
UNSPECIFIED_ERROR
Value of error code. |
static int |
UNSUPPORTED
Value of error code. |
static int |
UNSUPPORTED_QUERY_FIELD
Value of error code. |
static int |
UNSUPPORTED_SORT_FIELD
Value of error code. |
Constructor Summary | |
---|---|
DatabaseException(java.lang.String reason,
int errorCode)
Construct a DatabaseException . |
Method Summary | |
---|---|
int |
getErrorCode()
Get the error code. |
java.lang.String[] |
getFieldIDs()
Returns a list of fieldIDs when the error code is either UNSUPPORTED_QUERY_FIELD ,
UNSUPPORTED_SORT_FIELD , INVALID_FIELD_ID or INVALID_FIELD_VALUE . |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int FATAL_ERROR
public static final int INVALID_REQUEST
public static final int UNSUPPORTED
public static final int UNRECOGNIZED_VERSION
public static final int UNSPECIFIED_ERROR
public static final int UNSUPPORTED_QUERY_FIELD
public static final int UNSUPPORTED_SORT_FIELD
public static final int INVALID_FIELD_ID
public static final int INVALID_FIELD_VALUE
public static final int UNABLE_TO_CONNECT
public static final int CONNECTION_FAILED
public static final int UNABLE_TO_LOCATE_SERVICE
public static final int UNABLE_TO_TUNE
Constructor Detail |
---|
public DatabaseException(java.lang.String reason, int errorCode)
DatabaseException
.
reason
- the detail messageerrorCode
- an error code as defined by the static values in this classMethod Detail |
---|
public int getErrorCode()
public java.lang.String[] getFieldIDs()
UNSUPPORTED_QUERY_FIELD
,
UNSUPPORTED_SORT_FIELD
, INVALID_FIELD_ID
or INVALID_FIELD_VALUE
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |