Package com.streambase.liveview.client
Enum Class LiveViewExceptionType
- All Implemented Interfaces:
Serializable
,Comparable<LiveViewExceptionType>
,Constable
Enumeration of possible LiveView exceptions. You can use getErrorCode() on a LiveViewException and compare against
getCode()
from one of these ENUMs. For example:
if (myException.getErrorCode() == LiveViewExceptionType.SNAPSHOT_OVER_LIMIT.getCode()) {
// then this exception was caused by the initial snapshot result set being larger than the specified limit value.
}
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe aggregate values must be explicitly named using the 'AS' keyword.Aggregate query must have group by clauseAlert Version can not be nullChanging alert rules is not authorizedThere is already a TableListListener for this LiveViewConnection.Error with sbd.sbconf.Binary streaming is not supported for this client typenew delete api is not supported by this server.Connection canceled by clientServer connection was closeddelete terminated at specified limit.Use of expressions is only allowed in aggregate queries.No connection to serverNo JDBC data-sources defined in sbd.sbconf.Principal not authorized for operationPolling is no longer supported.Publisher is closedQuery was closedURL Redirection loop detected.Connection closed by serverConnection with sb:// is no longer supported, try lv://.Connection to SB was remotely closedThe query gets a different schema on the new server.SQL statement for basis of table must be a SELECT statement.Group by is not allowed with 'select *' queries.Send Tuple did not receive a response from the server.LiveView server is still startingLiveView server was stopped alreadySession already has a binary listener.Snapshot results exceeded specified limitThis table does not support this type of queryThe LiveView server sent a SSL certificate not trusted by the receiving clientQuery updates exceeded specified limitClient using Websockets without creating a websocket session. -
Method Summary
Modifier and TypeMethodDescriptionstatic LiveViewException
Wraps any throwable into a LiveViewException of type LiveViewExceptionType.UNEXPECTEDint
getCode()
Gets the unique identifying code for the exception ENUMstatic LiveViewExceptionType
Returns the enum constant of this class with the specified name.static LiveViewExceptionType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PARSING_ERROR_AT
-
SB_URI_NO_CONTAINER
-
UNDERLYING_SB_EXCEPTION
-
CONNECTION_CLOSED
Server connection was closed -
QUERY_SYNTAX
-
UNEXPECTED
-
UNKNOWN_FIELD_AT
-
INVALID_SESSION
-
INVALID_QUERY_HANDLE
-
QUERY_NOT_SPECIFIED
-
UNKNOWN_TABLE
-
DUPLICATE_TABLE
-
NOT_AUTHORIZED
Principal not authorized for operation -
SERVER_NOT_STARTED
LiveView server is still starting -
SESSION_ALREADY_HAS_BINARY_LISTENER
Session already has a binary listener. Do not call more than once per session -
REMOTE_CONNECTION_CLOSE
Connection closed by server -
UNAUTHORIZED
-
INVALID_REQUEST
-
MAX_SESSIONS_EXCEEDED
-
POLLING_NOT_SUPPORTED_FOR_CLIENT
Polling is no longer supported. -
NOT_A_VALID_QUERY_ID
-
BINARY_STREAMING_NOT_SUPPORTED_FOR_CLIENT
Binary streaming is not supported for this client type -
MAX_QUERIES_PER_SESSION_EXCEEDED
-
QUERY_RESULT_QUEUE_SIZE_EXCEEDED
-
UPDATE_OVER_LIMIT
Query updates exceeded specified limit -
PROTOCOL_VERSION_NOT_SUPPORTED
-
CONNECTION_CANCELED
Connection canceled by client -
COULD_NOT_CONNECT
-
TABLE_IS_NOT_WRITEABLE
-
PK_FIELD_CANNOT_BE_NULL
-
IO_EXCEPTION
-
INVALID_CONNECT_URI
-
QUERY_WAS_CLOSED
Query was closed -
MAX_SB_CONNECTIONS_EXCEEDED
-
SB_REMOTE_CONNECTION_CLOSED
Connection to SB was remotely closed -
INVALID_SAVED_QUERY_ID
-
PUBLISHER_CLOSED
Publisher is closed -
DUPLICATE_GROUP_BY_EXPR
-
NON_AGG_MUST_BE_IN_GROUP_BY
-
DUPLICATION_SELECT_EXPR
-
AGG_QUERY_MUST_HAVE_GROUP_BY
Aggregate query must have group by clause -
TABLE_DOES_NOT_SUPPORT_QUERY
This table does not support this type of query -
PROTOCOL_SCHEMA_VIOLATION
-
ALERT_VERSION_NULL
Alert Version can not be null -
ALERT_VERSION_MISMATCH
-
ALERT_SERVICE_ERROR
-
ALERT_VALIDATION_ERROR
-
SERVER_WAS_STOPPED
LiveView server was stopped already -
EXPRESSION_ERROR
-
SNAPSHOT_OVER_LIMIT
Snapshot results exceeded specified limit -
ALERTS_DISABLED
Changing alert rules is not authorized -
JDBC_DATA_SOURCE_ERROR
-
NO_DATASOURCES_DEFINED_IN_SBD_SBCONF
No JDBC data-sources defined in sbd.sbconf. -
BAD_SBD_SBCONF
Error with sbd.sbconf. -
SQL_ERROR
-
DATA_SOURCE_NOT_FOUND
-
SELECT_ONLY
SQL statement for basis of table must be a SELECT statement. -
SQL_TABLE_SNAPSHOT_ONLY
-
ERROR_PROCESSING_QUERY
-
JDBC_CONFIG_ERROR
-
WORKSPACE_VERSION_MISMATCH
-
WORKSPACE_NOT_FOUND
-
QUERY_OPTION_NOT_SUPPORTED
-
INVALID_QUERY
-
ALREADY_LISTENING
There is already a TableListListener for this LiveViewConnection. -
INVALID_PROJECTION_EXPR
-
AGG_NOT_EXPLICITY_NAMED
The aggregate values must be explicitly named using the 'AS' keyword. -
AGGREGATE_STREAM_ERROR
-
SELECT_STAR_INVALID_WITH_GROUPS
Group by is not allowed with 'select *' queries. Scalar expressions must be in the group by list. -
SQL_TYPECHECK_ERROR
-
SQL_GENERAL_ERROR
-
UNMATCHED_QUOTE
-
DELETE_REACH_LIMIT
delete terminated at specified limit. -
BLOCKING_DELETE_QUERY_NOT_SUPORTED
new delete api is not supported by this server. Minimum server version is 1.5.2. -
SB_CONNECTION_NO_LONGER
Connection with sb:// is no longer supported, try lv://. -
COULD_NOT_CONNECT_MSG
-
TABLE_PROVIDER_MISSING_REQUIRED_PARAMETERS
-
CLASS_NOT_FOUND_OR_NOT_TABLEPROVIDER
-
TABLE_PROVIDER_ALREADY_EXISTS
-
REMOTE_LIVEVIEW_SERVER_DOES_NOT_SUPPORT_EXTERNAL_HOSTING
-
TABLE_IS_DISABLED
-
TABLE_IS_SHUTTING_DOWN
-
TABLE_DOES_NOT_EXIST
-
UNTRUSTED_SSL_CERTIFICATE
The LiveView server sent a SSL certificate not trusted by the receiving client -
REMOTE_LIVEVIEW_SBD_CONNECTION_CLOSED
-
PROBLEM_CONNECTION_TO_SBD
-
TABLE_REQUIRES_UNSUPPORTED_CAPABILITIES
-
USING_WEBSOCKETS_UNSUPERVISED
Client using Websockets without creating a websocket session. -
NOT_SUPPORTED_IN_MULTISERVER
-
SCHEMA_DOES_NOT_MATCH
The query gets a different schema on the new server. -
QUERY_FAILS_ON_NEW_SERVER
-
QUERY_ID_ALREADY_USED
-
REQUIRED_PARAMETER_MISSING
-
SENDTUPLE_RESPONSE_REQUIRES_KEY_FIELD
-
SENDTUPLE_NO_RESPONSE
Send Tuple did not receive a response from the server. -
SENDTUPLE_STREAMNAME_OR_CONTAINER_NOT_FOUND
-
AGGREGATE_ALERT_REQUIRES_ALERT_TEST_EXPRESSION
-
ALERT_TEST_EXPRESSION_WAS_NULL
-
ALERT_TEST_EXPRESSION_ERROR
-
ALIAS_ALLOWED_IN_AGG_ONLY
-
REDIRECT_TOO_DEEP
URL Redirection loop detected. Check your Server Proxy settings. -
SESSIONCHANNEL_DOES_NOT_EXIST
-
CHANNEL_ALREADY_EXISTS
-
EXPRESSIONS_ALLOWED_IN_AGG_ONLY
Use of expressions is only allowed in aggregate queries. Simple queries can have field references only. -
REQUIRED_FILE_NOT_FOUND
-
PUBLISHING_NOT_SUPPORTED
-
CRON_ALERT_INVALID_SCHEDULE
-
CRON_ALERT_ADD
-
ADMINISTRATIVE_ACTION_NEW_SESSIONS_STOPPED
-
QF_AGGREGATE_FUNCTIONS_CANNOT_BE_COMBINED_WITH_CALCULATED_COLUMN
public static final LiveViewExceptionType QF_AGGREGATE_FUNCTIONS_CANNOT_BE_COMBINED_WITH_CALCULATED_COLUMN -
QF_GROUP_BY_NOT_ALLOWED_WITH_CALCULATED_COLUMNS
-
DELTA_SHOULD_BE_DISABLED_TO_GET_BIT_MASK_OF_CHANGED_FIELDS
public static final LiveViewExceptionType DELTA_SHOULD_BE_DISABLED_TO_GET_BIT_MASK_OF_CHANGED_FIELDS -
ENGINE_NOT_AVAILABLE_FOR_CALCULATION
-
DYNAMIC_TABLES_NOT_ALLOWED
-
ILLEGAL_QUERYTYPE__QUERYLISTENER_COMBINATION
-
TUPLE_UPDATE_FOR_A_MISSING_RESULT
-
SESSION_TRYING_TO_KILL_SELF
-
INVALID_PUBLISHER
-
KILL_PUBLISHER_ADMINISTRATIVE_KILL_
-
KILL_QUERY_ADMINISTRATIVE_KILL
-
TABLE_IS_ALREADY_LOADING
-
TABLE_IS_ALREADY_RUNNING
-
TABLE_MUST_BE_DROPPED
-
LIVEVIEW_TABLE_CONFIGURATIONS_NOT_FOUND
-
SCHEMA_PARSE_ERROR
-
TABLE_REMOVE_BLOCKED
-
DYNAMIC_TABLES_NOT_ALLOWED_2
-
TABLE_START_BLOCKED
-
KILL_QUERY_SESSION_CLOSED_KILL
-
KILL_QUERY_TABLE_DROPPED_KILL
-
TABLE_DROPPING_NOT_ALLOWED_WHILE_LOADING
-
QUERY_OR_SCHEMA_REQUIRED
-
INCOMPLETE_ELEMENT
-
PARSE_WITH_PIVOT_REQUIRES_TABLE_SCHEMA
-
PIVOT_ALLOWED_ONLY_WITH_SELECT_STAR
-
PIVOT_CLAUSE_SHOULD_ONLY_HAVE_AGGREGATE_EXPRESSIONS
-
PIVOT_VALUES_VALIDATION
-
PIVOT_COLUMN_NAME_VALIDATION
-
PIVOT_VALUES_VALIDATION_INCOMPATIBLE_LITERAL_DATA_TYPE
-
PIVOT_ALIAS_CONFLICT
-
PIVOT_VALUES_INVALID_TEST_EXPRESSION
-
INVALID_STREAMBASE_IDENTIFIER
-
PIVOT_COLUMN_MISSING
-
PIVOT_AGG_EXPRESSION_VALIDATION
-
PIVOT_VALUES_EXPRESSION_VALIDATION
-
DYNAMIC_TABLE_CREATE_DATA_VALIDATION
-
PREDICATE_CAN_ONLY_BE_OF_TYPE_BOOLEAN
-
TABLE_IN_PURGATORY
-
RESERVED_WORDS_NOT_ALLOWED_FOR_TABLE_NAMES
-
ALERT_QUERY_CONFIG_WITH_QUERY_STRING_NOT_ALLOWED
-
NO_CONNECTION
No connection to server -
ALERTS_NOT_SUPPORTED_FOR_TABLE
-
PIVOT_QUERY_NOT_SUPPORTED_WITH_ALERTS
-
ERROR_GETTING_SCHEMA_INTERFACE_FILE_CONTENTS
-
NOT_A_VALID_CONFIGURATION_FILE
-
ERROR_ENCOUNTERED_WHILE_STARTING_TABLES
-
ERROR_ENCOUNTERED_WHILE_CREATING_TABLE
-
INVALID_TABLE_NAME
-
PREDICATE_CANNOT_HAVE_IMPURE_FUNCTIONS
-
UNSUPPORTED_DATATYPE
-
FILTERED_TABLE_START_DROP_NOT_ALLOWED
-
FILTERED_TABLE_PREDICATE_MISSING
-
PROJECTION_UNRESOLVABLE
-
ALERT_SERVICE_DISABLED
-
WORKSPACE_UPLOADING
-
ALERT_SERVICE_ACTION_SUBMISSION_FAILURE
-
BUFFERED_TABLE_PUBLISHER_FLUSH_ERROR
-
WORKSPACE_GET_DATA_MISSING
-
ALERTS_GET_DATA_MISSING
-
SNAPSHOT_END_NOT_SEEN
-
DYNAMIC_TABLE_NOT_SUPPORTED_WITH_MEMORY_CATALOG
-
SERVER_STATE_SETTING_ERROR
-
BAD_SCHEMA_DESCRIBING_TABLE
-
ERROR_ENCOUNTERED_WHILE_FETCHING_SCHEMA_FROM_JAXB_INFO
-
INVALID_USERNAME_IN_URI
-
UNKNOWN_CQS_SCOPE_TRANSITION
-
BAD_DATA_FILE
-
TABLE_ACTIVE_SPACES_ERROR_WHILE_DELETE
-
TABLE_ACTIVE_SPACES_ERROR_WHILE_SNAPSHOT
-
TABLE_ACTIVE_SPACES_ERROR_WHILE_ADDING_LISTENER
-
UNKNOWN_FIELD_TYPE
-
UNKNOWN_STREAMBASE_TABLE_MESSAGE_TYPE
-
ACTIVE_SPACES_SPACE_LISTENER_NOT_READY
-
ELEMENT_NOT_FOUND_EXCEPTION
-
STORAGE_EXCEPTION
-
SEARCH_NOT_SUPPORTED
-
ERROR_STOPPING_DATA_STORE
-
ALERT_NOT_FOUND
-
ERROR_STARTING_DATA_STORE
-
ERROR_CREATING_PERSISTENT_STORE_TABLE
-
JDBC_STATEMENT_CLOSE
-
JDBC_CONNECTION_CLOSE
-
MODEL_CLONING_EXCEPTION
-
JDBC_SERIALIZATION_ERROR
-
JDBC_CONTENT_FIELD_READING_ERROR
-
JDBC_CONTENT_FIELD_SETTING_ERROR
-
JDBC_SYSTEM_FIELDS_READING_ERROR
-
JDBC_SYSTEM_FIELDS_SETTING_ERROR
-
JDBC_RESULT_SET_READING_ERROR
-
JDBC_LIVEVIEW_ENTITY_CREATION_ERROR
-
ERROR_CHECKING_PERSISTENT_STORE_TABLE
-
GUID_BASED_ALERTS_ERROR
-
TRANSACTIONAL_MEMORY_NOT_AVAILABLE
-
CANNOT_SAVE_DATA_WITH_NULL_ID
-
TRANSACTIONAL_MEMORY_REQUIRED
-
IMPORT_DATA_FAILURE_ABORT_POLICY
-
IMPORT_DATA_FAILURE
-
UNKNOWN_DATA_POLICY
-
INVALID_GUID
-
UNKNOWN_REQUESTED_RESOURCES
-
JSON_DATA_IMPORT_ERROR
-
MISSING_JSON_DATA_ERROR
-
UNABLE_TO_PREPARE_JSON_RESPONSE
-
ERROR_READING_FILE
-
ERROR_READING_INPUT_STREAM
-
ERROR_WRITING_FILE
-
INTERNAL_CLIENT_ERROR
-
ERROR_WRITING_OUTPUT_STREAM
-
EXPORT_DATA_FAILURE
-
ERROR_PROCESSING_JSON_DATA
-
JDBC_CONNECTION_GET_ERROR
-
CONFIGURED_METADTA_PROVIDER_NOT_FOUND
-
CONFIGURED_METADATA_PROVIDER_INTERFACE_RESTRICTION
-
CONFIGURED_METADTA_PROVIDER_CANNOT_BE_INVOKED
-
CONFIGURED_RESOURCE_PATH_INVALID
-
EMPTY_JSON_DATA
-
BLACKLISTED_FUNCTION_FOUND
-
LIVEVIEW_SECURITY_EXCEPTION
-
JDBC_METADATA_PREFIX_ABOVE_LIMIT
-
JDBC_METADATA_INSUFFICIENT_CHAR_FOR_ENTITY
-
JDBC_METADATA_TABLE_NAME_ALTERATION
-
JDBC_CONFIGURED_TABLE_LENGTH_OVER_LIMIT
-
ACTION_MAX_REDIRECTIONS_ALLOWED_EXCEEDED
-
ALERT_EXEC_JAVA_CLASS_NOT_ALLOWED
-
INVALID_PUBLISHER_CONFIG
-
INVALID_PUBLISHER_NAME
-
PUBLISHER_RELIABLE_PUBLISH_NOT_SUPPORTED_BY_SERVER
-
PUBLISHER_INTER_SESSION_VALIDATION
-
PUBLISHER_RELIABILITY_AUDIT_FAILED
-
PUBLISHER_RELIABILITY_NEGATIVE_SN
-
PUBLISHER_INTRA_SESSION_VALIDATION
-
PUBLISHER_CLOSE_SESSION_CLOSE
-
PUBLISHER_LISTENER_REGISTRATION_FAILED
-
PUBLISHER_CLOSING_ERROR
-
PUBLISHER_LISTENER_ALREADY_REGISTERED
-
PUBLISHER_KILL_TABLE_DROPPED_KILL
-
PUBLISHER_ACK_QUEUE_SIZE_EXCEEDED
-
PUBLISHER_MIN_CALL_BACK_RESTRICTION_VIOLATED
-
PUBLISHER_RELIABLE_PUBLISH_NOT_SUPPORTED_BY_TABLE
-
ALERT_GROUP_BASED_ERROR
-
TUPLE_ADD_FOR_AN_EXISTING_KEY
-
TUPLE_REMOVE_TUPLE_DOES_NOT_EXIST
-
ALERT_EXEC_OS_CMD_NOT_ALLOWED
-
NEXT_AVAILABLE_ERROR_CODE
-
LAST
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getCode
public int getCode()Gets the unique identifying code for the exception ENUM- Returns:
- int identifying the exception
-
error
Wraps any throwable into a LiveViewException of type LiveViewExceptionType.UNEXPECTED- Parameters:
cause
- the Throwable you wish to wrap- Returns:
- The exception wrapped in LiveViewException
-