webMethods Admin
Version 7.1.0.0.211 082207

COM.activesw.api.client
Class BrokerException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by COM.activesw.api.client.BrokerException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
BrokerBadStateException, BrokerClientContentionException, BrokerClientExistsException, BrokerClientGroupExistsException, BrokerClientQueueBrowserException, BrokerClientQueueLockException, BrokerClusterPublisherException, BrokerCommFailureException, BrokerConnectionClosedException, BrokerCorruptDataException, BrokerDependencyException, BrokerExistsException, BrokerFailureException, BrokerFieldNotFoundException, BrokerFieldTypeMismatchException, BrokerFileNotFoundException, BrokerFilterParseException, BrokerFilterRuntimeException, BrokerFormatException, BrokerHostNotFoundException, BrokerIncompatibleVersionException, BrokerInputParseException, BrokerInTerritoryException, BrokerInterruptedException, BrokerInvalidAccessListException, BrokerInvalidAcknowledgementException, BrokerInvalidBrokerNameException, BrokerInvalidClientException, BrokerInvalidClientGroupNameException, BrokerInvalidClientIdException, BrokerInvalidEventException, BrokerInvalidEventTypeNameException, BrokerInvalidFieldNameException, BrokerInvalidLicenseException, BrokerInvalidLogConfigException, BrokerInvalidNameException, BrokerInvalidPlatformKeyException, BrokerInvalidPortException, BrokerInvalidSubscriptionException, BrokerInvalidTerritoryNameException, BrokerInvalidTxException, BrokerInvalidTypeCacheException, BrokerInvalidTypeDefException, BrokerInvalidTypeException, BrokerNoPermissionException, BrokerNotImplementedException, BrokerNotInTerritoryException, BrokerNotRunningException, BrokerNullParameterException, BrokerOutOfRangeException, BrokerProtocolException, BrokerPublishPauseException, BrokerSecurityException, BrokerSubscriptionExistsException, BrokerTimeoutException, BrokerTxClosedException, BrokerUnknownBrokerNameException, BrokerUnknownClientGroupException, BrokerUnknownClientIdException, BrokerUnknownEventTypeException, BrokerUnknownInfosetException, BrokerUnknownKeyException, BrokerUnknownNameException, BrokerUnknownServerException, BrokerUnknownSessionIdException, BrokerUnknownTerritoryException

public class BrokerException
extends java.lang.Exception

This class implements the generic message loader. First the internal hash /** This class is the base exception type for all exception thrown by Information Broker client classes. Refer to specific exception sub-classes for information on why those exceptions are thrown.

See Also:
Serialized Form

Field Summary
static int MINOR_TRANSACTION_ALREADY_EXISTS
           
static int MINOR_TRANSACTION_ALREADY_EXISTS_HEURISTICALLY
           
static int MINOR_TRANSACTION_ALREADY_PREPARED
           
static int MINOR_TRANSACTION_CLIENT_MISMATCH
           
static int MINOR_TRANSACTION_CLOSED
           
static int MINOR_TRANSACTION_HEURISTICALLY_COMMITTED
           
static int MINOR_TRANSACTION_HEURISTICALLY_ROLLED_BACK
           
static int MINOR_TRANSACTION_ID_NOT_VALID
           
static int MINOR_TRANSACTION_INVALID_VALUE
           
static int MINOR_TRANSACTION_NOT_OPEN
           
static int MINOR_TRANSACTION_STATE_MISMATCH
           
static int MINOR_TRANSACTION_TIMEOUT_VALUE_INVALID
           
static int MINOR_TRANSACTION_UNABLE_TO_REOPEN
           
static int MINOR_UNKNOWN_TRANSACTION
           
 
Constructor Summary
protected BrokerException(int ex_id, int ex_code, int ex_minor_code)
          System use only.
 
Method Summary
 int getCode()
          Get the exception code.
static int getDiagnostics()
          Get the system diagnostics level.
 java.lang.String getMessage()
          Get the message string for the exception without the error code and other information.
 java.lang.String getMessage(java.util.Locale locale)
          Get the message string for the exception without the error code and other information.
 int getMinorCode()
          Get the exception minor code.
static void setDiagnostics(int diag)
          Set the system diagnostics level.
 java.lang.String toCompleteString()
          Get a printable version of the exception.
 java.lang.String toCompleteString(java.util.Locale locale)
          Get a printable version of the exception.
 java.lang.String toString()
          Get a printable version of the exception.
 java.lang.String toString(java.util.Locale locale)
          Get a printable version of the exception.
 
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
 

Field Detail

MINOR_UNKNOWN_TRANSACTION

public static final int MINOR_UNKNOWN_TRANSACTION
See Also:
Constant Field Values

MINOR_TRANSACTION_CLOSED

public static final int MINOR_TRANSACTION_CLOSED
See Also:
Constant Field Values

MINOR_TRANSACTION_CLIENT_MISMATCH

public static final int MINOR_TRANSACTION_CLIENT_MISMATCH
See Also:
Constant Field Values

MINOR_TRANSACTION_NOT_OPEN

public static final int MINOR_TRANSACTION_NOT_OPEN
See Also:
Constant Field Values

MINOR_TRANSACTION_STATE_MISMATCH

public static final int MINOR_TRANSACTION_STATE_MISMATCH
See Also:
Constant Field Values

MINOR_TRANSACTION_HEURISTICALLY_COMMITTED

public static final int MINOR_TRANSACTION_HEURISTICALLY_COMMITTED
See Also:
Constant Field Values

MINOR_TRANSACTION_HEURISTICALLY_ROLLED_BACK

public static final int MINOR_TRANSACTION_HEURISTICALLY_ROLLED_BACK
See Also:
Constant Field Values

MINOR_TRANSACTION_UNABLE_TO_REOPEN

public static final int MINOR_TRANSACTION_UNABLE_TO_REOPEN
See Also:
Constant Field Values

MINOR_TRANSACTION_INVALID_VALUE

public static final int MINOR_TRANSACTION_INVALID_VALUE
See Also:
Constant Field Values

MINOR_TRANSACTION_ID_NOT_VALID

public static final int MINOR_TRANSACTION_ID_NOT_VALID
See Also:
Constant Field Values

MINOR_TRANSACTION_ALREADY_PREPARED

public static final int MINOR_TRANSACTION_ALREADY_PREPARED
See Also:
Constant Field Values

MINOR_TRANSACTION_TIMEOUT_VALUE_INVALID

public static final int MINOR_TRANSACTION_TIMEOUT_VALUE_INVALID
See Also:
Constant Field Values

MINOR_TRANSACTION_ALREADY_EXISTS

public static final int MINOR_TRANSACTION_ALREADY_EXISTS
See Also:
Constant Field Values

MINOR_TRANSACTION_ALREADY_EXISTS_HEURISTICALLY

public static final int MINOR_TRANSACTION_ALREADY_EXISTS_HEURISTICALLY
See Also:
Constant Field Values
Constructor Detail

BrokerException

protected BrokerException(int ex_id,
                          int ex_code,
                          int ex_minor_code)
System use only.

Method Detail

toString

public java.lang.String toString()
Get a printable version of the exception. Supports only US locale.

Overrides:
toString in class java.lang.Throwable

toString

public java.lang.String toString(java.util.Locale locale)
Get a printable version of the exception. Supports different locales.


toCompleteString

public java.lang.String toCompleteString()
Get a printable version of the exception. This produces a longer form with additional information. Supports only US locale.


toCompleteString

public java.lang.String toCompleteString(java.util.Locale locale)
Get a printable version of the exception. This produces a longer form with additional information. Support different locales.


getMessage

public java.lang.String getMessage()
Get the message string for the exception without the error code and other information. Supports only US locale.

Overrides:
getMessage in class java.lang.Throwable

getMessage

public java.lang.String getMessage(java.util.Locale locale)
Get the message string for the exception without the error code and other information. Supports different locales.


getCode

public int getCode()
Get the exception code.


getMinorCode

public int getMinorCode()
Get the exception minor code.


setDiagnostics

public static void setDiagnostics(int diag)
Set the system diagnostics level. This controls how much output the program can send to the console.
0 produces no output. 1 produces only major error output. 2 produces all error output.
The default value is 1.


getDiagnostics

public static int getDiagnostics()
Get the system diagnostics level.


webMethods Admin
Version 7.1.0.0.211 082207

webMethods Broker is a registered trademark of webMethods, Inc.
Copyright 2005 webMethods, Inc.
All Rights Reserved.