webMethods Broker Administration Java API
Version 9.5.1.0.171 091713

COM.activesw.api.client
Class BrokerInputParseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by COM.activesw.api.client.BrokerException
              extended by COM.activesw.api.client.BrokerInputParseException
All Implemented Interfaces:
java.io.Serializable

public class BrokerInputParseException
extends BrokerException

This exception is thrown by the ADL parser when the import file contents are invalid in some way.

See Also:
Serialized Form

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_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
 int getColumnNumber()
          Returns the column number of the input file on which the error occurred.
 int getLineNumber()
          Returns the line number of the input file on which the error occurred.
 java.lang.String toLocationString(java.io.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, setDiagnostics, toCompleteString, toCompleteString, toString, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

toLocationString

public java.lang.String toLocationString(java.io.Reader reader)
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.


webMethods Broker Administration Java API
Version 9.5.1.0.171 091713


Copyright © 2001 - 2013 Software AG Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, United States of America, and/or their suppliers.