Package COM.activesw.api.client
Class BrokerInputParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
COM.activesw.api.client.BrokerException
COM.activesw.api.client.BrokerInputParseException
- All Implemented Interfaces:
Serializable
This exception is thrown by the ADL parser when the import file contents are invalid in some way.
- See Also:
-
Field Summary
Fields inherited from class COM.activesw.api.client.BrokerException
BROKER_EXCEPTION_SET_DIAG_FILE, BROKER_EXCEPTION_SET_DIAG_LEVEL, DIAG_NONE, DIAG_SHOW_ALL, DIAG_SHOW_ALL_ERRORS, DIAG_SHOW_FATAL_ERRORS, DIAG_SHOW_JAVA_API, DIAG_SHOW_QUEUE_INFO, DIAG_SHOW_SOCKET_ACTIVITY, DIAG_SHOW_SOCKET_PARSING, DIAG_SHOW_SOCKET_TRAFFIC, MINOR_TRANSACTION_ALREADY_EXISTS, MINOR_TRANSACTION_ALREADY_EXISTS_HEURISTICALLY, MINOR_TRANSACTION_ALREADY_PREPARED, MINOR_TRANSACTION_CLIENT_MISMATCH, MINOR_TRANSACTION_CLOSED, MINOR_TRANSACTION_HEURISTICALLY_COMMITTED, MINOR_TRANSACTION_HEURISTICALLY_ROLLED_BACK, MINOR_TRANSACTION_HEURISTICALLY_ROLLED_BACK_TIMEOUT, MINOR_TRANSACTION_ID_NOT_VALID, MINOR_TRANSACTION_INVALID_VALUE, MINOR_TRANSACTION_NOT_OPEN, MINOR_TRANSACTION_STATE_MISMATCH, MINOR_TRANSACTION_TIMEOUT_VALUE_INVALID, MINOR_TRANSACTION_UNABLE_TO_REOPEN, MINOR_UNKNOWN_TRANSACTION
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the column number of the input file on which the error occurred.int
Returns the line number of the input file on which the error occurred.toLocationString
(Reader reader) Returns a string containing the nature and location of the parse problem.Methods inherited from class COM.activesw.api.client.BrokerException
getCode, getDiagnostics, getMessage, getMessage, getMinorCode, logDebugMessage, setDiagnostics, toCompleteString, toCompleteString, toString, toString
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Method Details
-
toLocationString
Returns a string containing the nature and location of the parse problem. The exact location of the problem is highlighted by the use of the carat symbol (^) in the line under the quoted content. The reader given must be freshly opened and positioned at the beginning of the file. This may mean closing and re-opening the reader if it does not support the reset() method. If reader is null, an empty string will be returned. -
getLineNumber
public int getLineNumber()Returns the line number of the input file on which the error occurred. The first line in the file is line number 1. 0 is returned if the parse error is not specific to a particular line. -1 is returned if the line number is not known. -
getColumnNumber
public int getColumnNumber()Returns the column number of the input file on which the error occurred. The first column of a line is column number 0. -1 is returned if the column number is not known.
-