Class BrokerException

    • Field Detail

      • DIAG_SHOW_FATAL_ERRORS

        public static final int DIAG_SHOW_FATAL_ERRORS
        Setting the "brokerexc.setdiag" Java System property to BrokerException.DIAG_SHOW_FATAL_ERRORS will enable all fatal errors diagnostics.
        Ex: System.setProperty("brokerexc.setdiag", BrokerException.DIAG_SHOW_FATAL_ERRORS);
        See Also:
        Constant Field Values
      • DIAG_SHOW_ALL_ERRORS

        public static final int DIAG_SHOW_ALL_ERRORS
        Setting the "brokerexc.setdiag" Java System property to BrokerException.DIAG_SHOW_ALL_ERRORS will enable all errors diagnostics.
        Ex: System.setProperty("brokerexc.setdiag", BrokerException.DIAG_SHOW_ALL_ERRORS);
        See Also:
        Constant Field Values
      • DIAG_SHOW_SOCKET_ACTIVITY

        public static final int DIAG_SHOW_SOCKET_ACTIVITY
        Setting the "brokerexc.setdiag" Java System property to BrokerException.DIAG_SHOW_SOCKET_ACTIVITY will enable socket activity diagnostics.
        Ex: System.setProperty("brokerexc.setdiag", BrokerException.DIAG_SHOW_SOCKET_ACTIVITY);
        See Also:
        Constant Field Values
      • DIAG_SHOW_SOCKET_TRAFFIC

        public static final int DIAG_SHOW_SOCKET_TRAFFIC
        Setting the "brokerexc.setdiag" Java System property to BrokerException.DIAG_SHOW_SOCKET_TRAFFIC will enable socket traffic diagnostics.
        Ex: System.setProperty("brokerexc.setdiag", BrokerException.DIAG_SHOW_SOCKET_TRAFFIC);
        See Also:
        Constant Field Values
      • DIAG_SHOW_SOCKET_PARSING

        public static final int DIAG_SHOW_SOCKET_PARSING
        Setting the "brokerexc.setdiag" Java System property to BrokerException.DIAG_SHOW_SOCKET_PARSING will enable socket parsing diagnostics.
        Ex: System.setProperty("brokerexc.setdiag", BrokerException.DIAG_SHOW_SOCKET_PARSING);
        See Also:
        Constant Field Values
      • DIAG_SHOW_QUEUE_INFO

        public static final int DIAG_SHOW_QUEUE_INFO
        Setting the "brokerexc.setdiag" Java System property to BrokerException.DIAG_SHOW_QUEUE_INFO will enable queue info diagnostics.
        Ex: System.setProperty("brokerexc.setdiag", BrokerException.DIAG_SHOW_QUEUE_INFO);
        See Also:
        Constant Field Values
      • DIAG_SHOW_JAVA_API

        public static final int DIAG_SHOW_JAVA_API
        Setting the "brokerexc.setdiag" Java System property to BrokerException.DIAG_SHOW_JAVA_API will enable queue info diagnostics.
        Ex: System.setProperty("brokerexc.setdiag", BrokerException.DIAG_SHOW_JAVA_API);
        See Also:
        Constant Field Values
      • BROKER_EXCEPTION_SET_DIAG_LEVEL

        public static final java.lang.String BROKER_EXCEPTION_SET_DIAG_LEVEL
        BrokerException.setDiagnostics(...) can now be set via the Java System property "brokerexc.setdiag" .

        See the public static final fields starting with DIAG_ for more possible diagnostics levels.

        See Also:
        Constant Field Values
      • BROKER_EXCEPTION_SET_DIAG_FILE

        public static final 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" .
        See Also:
        Constant Field Values
      • 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_HEURISTICALLY_ROLLED_BACK_TIMEOUT

        public static final int MINOR_TRANSACTION_HEURISTICALLY_ROLLED_BACK_TIMEOUT
        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.
      • logDebugMessage

        public static void logDebugMessage​(java.lang.String message)
      • 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.
        See the public static final fields starting with DIAG_ for more possible diagnostics levels.
      • getDiagnostics

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