com.ibm.broker.plugin
Class MbBrokerException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.ibm.broker.plugin.MbBrokerException
-
- All Implemented Interfaces:
- java.io.Serializable
public class MbBrokerException extends java.lang.RuntimeException
An MbBrokerException is thrown when an internal error occurs in the broker. Normal MbBrokerExceptions are not caught and will be passed back to the broker. However, if they are caught by user code they must be rethrown to the broker for additional error recovery to be performed.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.String
getFileName()
Returns the name of the file that generated the exception.java.lang.Object[]
getInserts()
Returns the object array containing the inserts in the message.int
getLineNumber()
Returns the line in the file where the exception was generated.java.lang.String
getMessage()
Returns the full message with inserts.java.lang.String
getMessageKey()
Returns the message key of the message in the exception.java.lang.String
getMessageSource()
Returns the message source of the message in the exception.java.lang.String
getMethodName()
Returns the name of the method which throws the exception.MbException
getNestedException()
Returns the MbException object representing the first item in the exception list.java.lang.String
getTraceText()
Returns the trace text.java.lang.String
toString()
Returns the String representation of the exception.
-
-
-
Method Detail
-
getFileName
public java.lang.String getFileName()
Returns the name of the file that generated the exception.- Returns:
- The string containing the name of the file which generated the exception.
-
getInserts
public java.lang.Object[] getInserts()
Returns the object array containing the inserts in the message.- Returns:
- The String array containing the inserts in the message.
-
getLineNumber
public int getLineNumber()
Returns the line in the file where the exception was generated.- Returns:
- The line in the file where the exception was generated.
-
getMessageSource
public java.lang.String getMessageSource()
Returns the message source of the message in the exception.- Returns:
- The message source.
-
getMessageKey
public java.lang.String getMessageKey()
Returns the message key of the message in the exception.- Returns:
- The message key of the message in the exception.
-
getMethodName
public java.lang.String getMethodName()
Returns the name of the method which throws the exception.- Returns:
- The name of the method which generated the exception.
-
getTraceText
public java.lang.String getTraceText()
Returns the trace text.- Returns:
- The text of the extra message in the exception.
-
getMessage
public java.lang.String getMessage()
Returns the full message with inserts.- Overrides:
getMessage
in classjava.lang.Throwable
- Returns:
- The full message.
-
getNestedException
public MbException getNestedException()
Returns the MbException object representing the first item in the exception list. The returned object will be of the correct MbXxxException sub-class and can be further traversed using thegetNestedExceptions()
method of MbException.- Returns:
- The nested exception
-
toString
public java.lang.String toString()
Returns the String representation of the exception.- Overrides:
toString
in classjava.lang.Throwable
- Returns:
- A String representation of the exception.
-
-