java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException com.ibm.broker.plugin.MbBrokerException
public class MbBrokerException
extends 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.
Method | Description |
---|---|
String getFileName() | Returns the name of the file that generated the exception. |
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. |
String getMessage() | Returns the full message with inserts. |
String getMessageKey() | Returns the message key of the message in the exception. |
String getMessageSource() | Returns the message source of the message in the exception. |
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. |
String getTraceText() | Returns the trace text. |
String toString() | Returns the String representation of the exception. |
public 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.
public Object[] getInserts()Returns the object array containing the inserts in the message.
- Returns
- The String array containing the inserts in the message.
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.
public String getMessage()Returns the full message with inserts.
- Returns
- The full message.
- Overrides
- getMessage in class Throwable
public String getMessageKey()Returns the message key of the message in the exception.
- Returns
- The message key of the message in the exception.
public String getMessageSource()Returns the message source of the message in the exception.
- Returns
- The message source.
public String getMethodName()Returns the name of the method which throws the exception.
- Returns
- The name of the method which generated the exception.
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 the getNestedExceptions method of MbException.
- Returns
- The nested exception
public String getTraceText()Returns the trace text.
- Returns
- The text of the extra message in the exception.
public String toString()Returns the String representation of the exception.
- Returns
- A String representation of the exception.
- Overrides
- toString in class Throwable