cst.common.system
Enum CSTErrorType

java.lang.Object
  extended by java.lang.Enum<CSTErrorType>
      extended by cst.common.system.CSTErrorType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<CSTErrorType>

public enum CSTErrorType
extends java.lang.Enum<CSTErrorType>

An Enumerated type which defines codes for all anticipated errors in the system. Automated test cases which test error conditions use the codes to help verify the type and number of errors produced by some action.


 Copyright 2010 Medical Research Council Unit for Lifelong Health and Ageing
 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at
      http://www.apache.org/licenses/LICENSE-2.0
 Unless required by applicable law or agreed to in writing, software 
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.  
 

Version:
1.0
Author:
Kevin Garwood (kgarwood@users.sourceforge.net)

Enum Constant Summary
BLANK_PASSWORD
           
DATABASE_ALREADY_EXISTS
           
DUPLICATE_USER
           
EXPORT_NO_DESTINATION_FILE
           
EXPORT_UNABLE_TO_EXPORT_FILE
           
ILLEGAL_BLANK_VALUE
           
ILLEGAL_CHRONOLOGY
           
ILLEGAL_DATE_SEQUENCE
           
ILLEGAL_DATE_VALUE
           
ILLEGAL_NUMBER_OF_DAYS
           
IMPORT_SOME_DATA_NOT_READ
           
IMPORT_SPREADSHEET_CHRONOLOGICAL_ORDERING
           
IMPORT_SPREADSHEET_DATE_FORMAT_ERRORS
           
IMPORT_SPREADSHEET_DUPLICATE_HEADER_LABEL
           
IMPORT_SPREADSHEET_DUPLICATE_SUBJECT
           
IMPORT_SPREADSHEET_FILE_ERROR
           
IMPORT_SPREADSHEET_ILLEGAL_COMMENT
           
IMPORT_SPREADSHEET_NO_BLANK_ALLOWED
           
IMPORT_SPREADSHEET_NO_COMMENTS_ALLOWED
           
IMPORT_SPREADSHEET_NO_HEADER
           
IMPORT_SPREADSHEET_NO_PRIMARY_KEY_MAPPING
           
IMPORT_SPREADSHEET_ROW_SIZE_MISMATCHES
           
IMPORT_SPREADSHEET_UNKNOWN_HEADER_LABEL
           
IMPORT_SPREADSHEET_UNRECOGNISED_SUBJECT
           
INVALID_ACTIVITY
           
INVALID_ACTIVITY_STEP
           
INVALID_COMMENTS_LENGTH
           
INVALID_CORE_FIELD
           
INVALID_DATE_VALUE
           
INVALID_LOGIN
           
NO_PROPERTIES_FILE_FOR_SETUP
           
NO_SEARCH_RESULT_FOUND
           
NON_EXISTENT_CONFIGURATION_FILE
           
NON_EXISTENT_DATABASE
           
NON_EXISTENT_IMPORT_FILE
           
NON_EXISTENT_SUBJECT_MODEL
           
NON_EXISTENT_USER
           
SQL_NO_CONNECTIONS_AVAILABLE
           
SQL_REPOSITORY_NOT_SYNCHRONISED
           
SQL_UNABLE_TO_ADD_USER
           
SQL_UNABLE_TO_CHECK_SYNC_ERRORS
           
SQL_UNABLE_TO_CHECK_TRIAL_SUBJECT_MODEL_EXISTS
           
SQL_UNABLE_TO_CHECK_USER_EXISTS
           
SQL_UNABLE_TO_CLEAR_CHANGES
           
SQL_UNABLE_TO_CLEAR_USERS
           
SQL_UNABLE_TO_COMMIT_CHANGES
           
SQL_UNABLE_TO_CREATE_CONNECTION
           
SQL_UNABLE_TO_CREATE_DATABASE
           
SQL_UNABLE_TO_DELETE_DATABASE
           
SQL_UNABLE_TO_DELETE_USER
           
SQL_UNABLE_TO_GET_ALL_TRIAL_ACTIVITY_MODELS
           
SQL_UNABLE_TO_GET_COMPLETED_ACTIVITY_COUNT
           
SQL_UNABLE_TO_GET_CORE_DATA
           
SQL_UNABLE_TO_GET_REGISTERED_USERS
           
SQL_UNABLE_TO_GET_TRIAL_ACTIVITY_CHANGES
           
SQL_UNABLE_TO_GET_TRIAL_SUBJECT_MODEL
           
SQL_UNABLE_TO_IMPORT_TRIAL_SUBJECT_MODELS
           
SQL_UNABLE_TO_INIT_DRIVE_MANAGER
           
SQL_UNABLE_TO_INITIALISE_CONNECTION
           
SQL_UNABLE_TO_ROLLBACK
           
SQL_UNABLE_TO_UPDATE_CHANGE_HISTORY
           
SQL_UNABLE_TO_UPDATE_COMPLETED_ACTIVITY_COUNT
           
SQL_UNABLE_TO_UPDATE_TRIAL_ACTIVITY
           
SQL_UNABLE_TO_UPDATE_USER
           
SQL_UNABLE_TO_VALIDATE_ADMINISTRATOR
           
SQL_UNABLE_TO_VALIDATE_USER
           
SQL_UNRECOGNISED_TABLE
           
SQL_UNRECOGNISED_TABLE_FIELD
           
UNABLE_TO_APPLY_COMPLETION_ONLY_FILTER
           
UNABLE_TO_APPLY_CORE_AND_COMPLETION_FILTER
           
UNABLE_TO_APPLY_CORE_AND_DATA_TYPE_FILTER
           
UNABLE_TO_APPLY_CORE_FIELD_ONLY_FILTER
           
UNABLE_TO_APPLY_DATA_TYPE_ONLY_FILTER
           
UNABLE_TO_APPLY_SHOW_ALL_FILTER
           
UNABLE_TO_CHECK_DATABASE_EXISTS
           
UNABLE_TO_CHECK_SUBJECT_MODEL_EXISTS
           
UNABLE_TO_CLOSE_CONNECTION
           
UNABLE_TO_CLOSE_STATEMENT
           
UNABLE_TO_GET_CORE_FIELD_VALUES
           
UNABLE_TO_GET_TRIAL_ACTIVITY_MODEL
           
UNABLE_TO_IMPORT_DATA
           
UNABLE_TO_PROCESS_BATCH_UPDATES
           
UNABLE_TO_PROCESS_CONFIGURATION_FILE
           
UNABLE_TO_PROCESS_IMPORT_FILE
           
UNKNOWN_EXCEPTION
           
 
Method Summary
static CSTErrorType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static CSTErrorType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NO_PROPERTIES_FILE_FOR_SETUP

public static final CSTErrorType NO_PROPERTIES_FILE_FOR_SETUP

NON_EXISTENT_CONFIGURATION_FILE

public static final CSTErrorType NON_EXISTENT_CONFIGURATION_FILE

UNABLE_TO_PROCESS_CONFIGURATION_FILE

public static final CSTErrorType UNABLE_TO_PROCESS_CONFIGURATION_FILE

NON_EXISTENT_IMPORT_FILE

public static final CSTErrorType NON_EXISTENT_IMPORT_FILE

UNABLE_TO_PROCESS_IMPORT_FILE

public static final CSTErrorType UNABLE_TO_PROCESS_IMPORT_FILE

IMPORT_SOME_DATA_NOT_READ

public static final CSTErrorType IMPORT_SOME_DATA_NOT_READ

EXPORT_NO_DESTINATION_FILE

public static final CSTErrorType EXPORT_NO_DESTINATION_FILE

EXPORT_UNABLE_TO_EXPORT_FILE

public static final CSTErrorType EXPORT_UNABLE_TO_EXPORT_FILE

NO_SEARCH_RESULT_FOUND

public static final CSTErrorType NO_SEARCH_RESULT_FOUND

DATABASE_ALREADY_EXISTS

public static final CSTErrorType DATABASE_ALREADY_EXISTS

NON_EXISTENT_DATABASE

public static final CSTErrorType NON_EXISTENT_DATABASE

ILLEGAL_NUMBER_OF_DAYS

public static final CSTErrorType ILLEGAL_NUMBER_OF_DAYS

ILLEGAL_CHRONOLOGY

public static final CSTErrorType ILLEGAL_CHRONOLOGY

ILLEGAL_DATE_SEQUENCE

public static final CSTErrorType ILLEGAL_DATE_SEQUENCE

ILLEGAL_DATE_VALUE

public static final CSTErrorType ILLEGAL_DATE_VALUE

ILLEGAL_BLANK_VALUE

public static final CSTErrorType ILLEGAL_BLANK_VALUE

INVALID_ACTIVITY

public static final CSTErrorType INVALID_ACTIVITY

INVALID_ACTIVITY_STEP

public static final CSTErrorType INVALID_ACTIVITY_STEP

INVALID_CORE_FIELD

public static final CSTErrorType INVALID_CORE_FIELD

INVALID_COMMENTS_LENGTH

public static final CSTErrorType INVALID_COMMENTS_LENGTH

INVALID_LOGIN

public static final CSTErrorType INVALID_LOGIN

BLANK_PASSWORD

public static final CSTErrorType BLANK_PASSWORD

INVALID_DATE_VALUE

public static final CSTErrorType INVALID_DATE_VALUE

NON_EXISTENT_SUBJECT_MODEL

public static final CSTErrorType NON_EXISTENT_SUBJECT_MODEL

DUPLICATE_USER

public static final CSTErrorType DUPLICATE_USER

NON_EXISTENT_USER

public static final CSTErrorType NON_EXISTENT_USER

IMPORT_SPREADSHEET_FILE_ERROR

public static final CSTErrorType IMPORT_SPREADSHEET_FILE_ERROR

IMPORT_SPREADSHEET_NO_HEADER

public static final CSTErrorType IMPORT_SPREADSHEET_NO_HEADER

IMPORT_SPREADSHEET_UNRECOGNISED_SUBJECT

public static final CSTErrorType IMPORT_SPREADSHEET_UNRECOGNISED_SUBJECT

IMPORT_SPREADSHEET_DUPLICATE_SUBJECT

public static final CSTErrorType IMPORT_SPREADSHEET_DUPLICATE_SUBJECT

IMPORT_SPREADSHEET_NO_BLANK_ALLOWED

public static final CSTErrorType IMPORT_SPREADSHEET_NO_BLANK_ALLOWED

IMPORT_SPREADSHEET_DATE_FORMAT_ERRORS

public static final CSTErrorType IMPORT_SPREADSHEET_DATE_FORMAT_ERRORS

IMPORT_SPREADSHEET_ILLEGAL_COMMENT

public static final CSTErrorType IMPORT_SPREADSHEET_ILLEGAL_COMMENT

IMPORT_SPREADSHEET_ROW_SIZE_MISMATCHES

public static final CSTErrorType IMPORT_SPREADSHEET_ROW_SIZE_MISMATCHES

IMPORT_SPREADSHEET_NO_COMMENTS_ALLOWED

public static final CSTErrorType IMPORT_SPREADSHEET_NO_COMMENTS_ALLOWED

IMPORT_SPREADSHEET_CHRONOLOGICAL_ORDERING

public static final CSTErrorType IMPORT_SPREADSHEET_CHRONOLOGICAL_ORDERING

IMPORT_SPREADSHEET_UNKNOWN_HEADER_LABEL

public static final CSTErrorType IMPORT_SPREADSHEET_UNKNOWN_HEADER_LABEL

IMPORT_SPREADSHEET_DUPLICATE_HEADER_LABEL

public static final CSTErrorType IMPORT_SPREADSHEET_DUPLICATE_HEADER_LABEL

IMPORT_SPREADSHEET_NO_PRIMARY_KEY_MAPPING

public static final CSTErrorType IMPORT_SPREADSHEET_NO_PRIMARY_KEY_MAPPING

SQL_UNABLE_TO_CHECK_SYNC_ERRORS

public static final CSTErrorType SQL_UNABLE_TO_CHECK_SYNC_ERRORS

SQL_UNABLE_TO_INITIALISE_CONNECTION

public static final CSTErrorType SQL_UNABLE_TO_INITIALISE_CONNECTION

SQL_UNABLE_TO_COMMIT_CHANGES

public static final CSTErrorType SQL_UNABLE_TO_COMMIT_CHANGES

SQL_UNABLE_TO_ROLLBACK

public static final CSTErrorType SQL_UNABLE_TO_ROLLBACK

SQL_UNABLE_TO_GET_REGISTERED_USERS

public static final CSTErrorType SQL_UNABLE_TO_GET_REGISTERED_USERS

SQL_UNABLE_TO_CHECK_USER_EXISTS

public static final CSTErrorType SQL_UNABLE_TO_CHECK_USER_EXISTS

SQL_UNABLE_TO_VALIDATE_ADMINISTRATOR

public static final CSTErrorType SQL_UNABLE_TO_VALIDATE_ADMINISTRATOR

SQL_UNABLE_TO_ADD_USER

public static final CSTErrorType SQL_UNABLE_TO_ADD_USER

SQL_UNABLE_TO_UPDATE_USER

public static final CSTErrorType SQL_UNABLE_TO_UPDATE_USER

SQL_UNABLE_TO_DELETE_USER

public static final CSTErrorType SQL_UNABLE_TO_DELETE_USER

SQL_UNABLE_TO_VALIDATE_USER

public static final CSTErrorType SQL_UNABLE_TO_VALIDATE_USER

SQL_UNABLE_TO_UPDATE_COMPLETED_ACTIVITY_COUNT

public static final CSTErrorType SQL_UNABLE_TO_UPDATE_COMPLETED_ACTIVITY_COUNT

SQL_UNABLE_TO_GET_COMPLETED_ACTIVITY_COUNT

public static final CSTErrorType SQL_UNABLE_TO_GET_COMPLETED_ACTIVITY_COUNT

SQL_UNABLE_TO_GET_CORE_DATA

public static final CSTErrorType SQL_UNABLE_TO_GET_CORE_DATA

SQL_UNABLE_TO_IMPORT_TRIAL_SUBJECT_MODELS

public static final CSTErrorType SQL_UNABLE_TO_IMPORT_TRIAL_SUBJECT_MODELS

SQL_UNABLE_TO_GET_TRIAL_SUBJECT_MODEL

public static final CSTErrorType SQL_UNABLE_TO_GET_TRIAL_SUBJECT_MODEL

SQL_UNABLE_TO_CHECK_TRIAL_SUBJECT_MODEL_EXISTS

public static final CSTErrorType SQL_UNABLE_TO_CHECK_TRIAL_SUBJECT_MODEL_EXISTS

SQL_UNABLE_TO_GET_ALL_TRIAL_ACTIVITY_MODELS

public static final CSTErrorType SQL_UNABLE_TO_GET_ALL_TRIAL_ACTIVITY_MODELS

SQL_UNABLE_TO_UPDATE_TRIAL_ACTIVITY

public static final CSTErrorType SQL_UNABLE_TO_UPDATE_TRIAL_ACTIVITY

SQL_UNABLE_TO_UPDATE_CHANGE_HISTORY

public static final CSTErrorType SQL_UNABLE_TO_UPDATE_CHANGE_HISTORY

SQL_UNABLE_TO_CREATE_DATABASE

public static final CSTErrorType SQL_UNABLE_TO_CREATE_DATABASE

SQL_UNABLE_TO_DELETE_DATABASE

public static final CSTErrorType SQL_UNABLE_TO_DELETE_DATABASE

SQL_NO_CONNECTIONS_AVAILABLE

public static final CSTErrorType SQL_NO_CONNECTIONS_AVAILABLE

SQL_UNABLE_TO_CREATE_CONNECTION

public static final CSTErrorType SQL_UNABLE_TO_CREATE_CONNECTION

SQL_UNABLE_TO_INIT_DRIVE_MANAGER

public static final CSTErrorType SQL_UNABLE_TO_INIT_DRIVE_MANAGER

UNABLE_TO_PROCESS_BATCH_UPDATES

public static final CSTErrorType UNABLE_TO_PROCESS_BATCH_UPDATES

SQL_UNRECOGNISED_TABLE

public static final CSTErrorType SQL_UNRECOGNISED_TABLE

SQL_UNRECOGNISED_TABLE_FIELD

public static final CSTErrorType SQL_UNRECOGNISED_TABLE_FIELD

SQL_REPOSITORY_NOT_SYNCHRONISED

public static final CSTErrorType SQL_REPOSITORY_NOT_SYNCHRONISED

SQL_UNABLE_TO_CLEAR_CHANGES

public static final CSTErrorType SQL_UNABLE_TO_CLEAR_CHANGES

SQL_UNABLE_TO_CLEAR_USERS

public static final CSTErrorType SQL_UNABLE_TO_CLEAR_USERS

SQL_UNABLE_TO_GET_TRIAL_ACTIVITY_CHANGES

public static final CSTErrorType SQL_UNABLE_TO_GET_TRIAL_ACTIVITY_CHANGES

UNABLE_TO_APPLY_SHOW_ALL_FILTER

public static final CSTErrorType UNABLE_TO_APPLY_SHOW_ALL_FILTER

UNABLE_TO_APPLY_COMPLETION_ONLY_FILTER

public static final CSTErrorType UNABLE_TO_APPLY_COMPLETION_ONLY_FILTER

UNABLE_TO_APPLY_CORE_FIELD_ONLY_FILTER

public static final CSTErrorType UNABLE_TO_APPLY_CORE_FIELD_ONLY_FILTER

UNABLE_TO_APPLY_DATA_TYPE_ONLY_FILTER

public static final CSTErrorType UNABLE_TO_APPLY_DATA_TYPE_ONLY_FILTER

UNABLE_TO_APPLY_CORE_AND_DATA_TYPE_FILTER

public static final CSTErrorType UNABLE_TO_APPLY_CORE_AND_DATA_TYPE_FILTER

UNABLE_TO_APPLY_CORE_AND_COMPLETION_FILTER

public static final CSTErrorType UNABLE_TO_APPLY_CORE_AND_COMPLETION_FILTER

UNABLE_TO_GET_CORE_FIELD_VALUES

public static final CSTErrorType UNABLE_TO_GET_CORE_FIELD_VALUES

UNABLE_TO_CHECK_SUBJECT_MODEL_EXISTS

public static final CSTErrorType UNABLE_TO_CHECK_SUBJECT_MODEL_EXISTS

UNABLE_TO_GET_TRIAL_ACTIVITY_MODEL

public static final CSTErrorType UNABLE_TO_GET_TRIAL_ACTIVITY_MODEL

UNABLE_TO_IMPORT_DATA

public static final CSTErrorType UNABLE_TO_IMPORT_DATA

UNKNOWN_EXCEPTION

public static final CSTErrorType UNKNOWN_EXCEPTION

UNABLE_TO_CLOSE_STATEMENT

public static final CSTErrorType UNABLE_TO_CLOSE_STATEMENT

UNABLE_TO_CLOSE_CONNECTION

public static final CSTErrorType UNABLE_TO_CLOSE_CONNECTION

UNABLE_TO_CHECK_DATABASE_EXISTS

public static final CSTErrorType UNABLE_TO_CHECK_DATABASE_EXISTS
Method Detail

values

public static CSTErrorType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (CSTErrorType c : CSTErrorType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static CSTErrorType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null