public class BrokerException
extends java.lang.Exception
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BROKER_EXCEPTION_SET_DIAG_FILE
Broker Java API diagnostic tracing can now be redirected to a file via the Java System property "brokerexc.diagfile" .
|
static java.lang.String |
BROKER_EXCEPTION_SET_DIAG_LEVEL
BrokerException.setDiagnostics(...) can now be set via the Java System property "brokerexc.setdiag" .
|
static int |
DIAG_NONE
Setting the "brokerexc.setdiag" Java System property to
BrokerException.DIAG_NONE will disable diagnostics. |
static int |
DIAG_SHOW_ALL
Setting the "brokerexc.setdiag" Java System property to
BrokerException.DIAG_SHOW_ALL will enable all diagnostics. |
static int |
DIAG_SHOW_ALL_ERRORS
Setting the "brokerexc.setdiag" Java System property to
BrokerException.DIAG_SHOW_ALL_ERRORS will enable all errors
diagnostics. |
static int |
DIAG_SHOW_FATAL_ERRORS
Setting the "brokerexc.setdiag" Java System property to
BrokerException.DIAG_SHOW_FATAL_ERRORS will enable all fatal errors
diagnostics. |
static int |
DIAG_SHOW_JAVA_API
Setting the "brokerexc.setdiag" Java System property to
BrokerException.DIAG_SHOW_JAVA_API will enable queue info
diagnostics. |
static int |
DIAG_SHOW_QUEUE_INFO
Setting the "brokerexc.setdiag" Java System property to
BrokerException.DIAG_SHOW_QUEUE_INFO will enable queue info
diagnostics. |
static int |
DIAG_SHOW_SOCKET_ACTIVITY
Setting the "brokerexc.setdiag" Java System property to
BrokerException.DIAG_SHOW_SOCKET_ACTIVITY will enable socket
activity diagnostics. |
static int |
DIAG_SHOW_SOCKET_PARSING
Setting the "brokerexc.setdiag" Java System property to
BrokerException.DIAG_SHOW_SOCKET_PARSING will enable socket parsing
diagnostics. |
static int |
DIAG_SHOW_SOCKET_TRAFFIC
Setting the "brokerexc.setdiag" Java System property to
BrokerException.DIAG_SHOW_SOCKET_TRAFFIC will enable socket traffic
diagnostics. |
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_HEURISTICALLY_ROLLED_BACK_TIMEOUT |
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 |
Modifier | Constructor and Description |
---|---|
protected |
BrokerException(int ex_id,
int ex_code,
int ex_minor_code)
System use only.
|
Modifier and Type | Method and Description |
---|---|
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 |
logDebugMessage(java.lang.String message) |
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.
|
public static final int DIAG_NONE
BrokerException.DIAG_NONE
will disable diagnostics. BrokerException.DIAG_NONE
);public static final int DIAG_SHOW_FATAL_ERRORS
BrokerException.DIAG_SHOW_FATAL_ERRORS
will enable all fatal errors
diagnostics. BrokerException.DIAG_SHOW_FATAL_ERRORS
);public static final int DIAG_SHOW_ALL_ERRORS
BrokerException.DIAG_SHOW_ALL_ERRORS
will enable all errors
diagnostics. BrokerException.DIAG_SHOW_ALL_ERRORS
);public static final int DIAG_SHOW_SOCKET_ACTIVITY
BrokerException.DIAG_SHOW_SOCKET_ACTIVITY
will enable socket
activity diagnostics. BrokerException.DIAG_SHOW_SOCKET_ACTIVITY
);public static final int DIAG_SHOW_SOCKET_TRAFFIC
BrokerException.DIAG_SHOW_SOCKET_TRAFFIC
will enable socket traffic
diagnostics. BrokerException.DIAG_SHOW_SOCKET_TRAFFIC
);public static final int DIAG_SHOW_SOCKET_PARSING
BrokerException.DIAG_SHOW_SOCKET_PARSING
will enable socket parsing
diagnostics. BrokerException.DIAG_SHOW_SOCKET_PARSING
);public static final int DIAG_SHOW_QUEUE_INFO
BrokerException.DIAG_SHOW_QUEUE_INFO
will enable queue info
diagnostics. BrokerException.DIAG_SHOW_QUEUE_INFO
);public static final int DIAG_SHOW_JAVA_API
BrokerException.DIAG_SHOW_JAVA_API
will enable queue info
diagnostics. BrokerException.DIAG_SHOW_JAVA_API
);public static final int DIAG_SHOW_ALL
BrokerException.DIAG_SHOW_ALL
will enable all diagnostics. BrokerException.DIAG_SHOW_ALL
);public static final java.lang.String BROKER_EXCEPTION_SET_DIAG_LEVEL
See the public static final fields starting with DIAG_ for more possible diagnostics levels.
public static final java.lang.String BROKER_EXCEPTION_SET_DIAG_FILE
public static final int MINOR_UNKNOWN_TRANSACTION
public static final int MINOR_TRANSACTION_CLOSED
public static final int MINOR_TRANSACTION_CLIENT_MISMATCH
public static final int MINOR_TRANSACTION_NOT_OPEN
public static final int MINOR_TRANSACTION_STATE_MISMATCH
public static final int MINOR_TRANSACTION_HEURISTICALLY_COMMITTED
public static final int MINOR_TRANSACTION_HEURISTICALLY_ROLLED_BACK
public static final int MINOR_TRANSACTION_HEURISTICALLY_ROLLED_BACK_TIMEOUT
public static final int MINOR_TRANSACTION_UNABLE_TO_REOPEN
public static final int MINOR_TRANSACTION_INVALID_VALUE
public static final int MINOR_TRANSACTION_ID_NOT_VALID
public static final int MINOR_TRANSACTION_ALREADY_PREPARED
public static final int MINOR_TRANSACTION_TIMEOUT_VALUE_INVALID
public static final int MINOR_TRANSACTION_ALREADY_EXISTS
public static final int MINOR_TRANSACTION_ALREADY_EXISTS_HEURISTICALLY
protected BrokerException(int ex_id, int ex_code, int ex_minor_code)
public java.lang.String toString()
toString
in class java.lang.Throwable
public java.lang.String toString(java.util.Locale locale)
public java.lang.String toCompleteString()
public java.lang.String toCompleteString(java.util.Locale locale)
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public java.lang.String getMessage(java.util.Locale locale)
public static void logDebugMessage(java.lang.String message)
public int getCode()
public int getMinorCode()
public static void setDiagnostics(int diag)
public static int getDiagnostics()
Copyright © 2002-2006 webMethods, Inc. Copyright © 2007-2021 Software AG Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.