|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
javax.servlet.jsp.JspException
com.infoengine.util.IEException
Field Summary | |
private boolean |
calledOnce
|
static String |
GETMESSAGE_LINE_SEPARATOR
|
private IEMessage |
message
|
private Throwable |
nestedThrowable
|
private static String |
RESOURCE
|
static String |
TOSTRING_LINE_SEPARATOR
|
Fields inherited from class javax.servlet.jsp.JspException |
|
Fields inherited from class java.lang.Exception |
|
Fields inherited from class java.lang.Throwable |
|
Constructor Summary | |
IEException()
Constructs a Info*Engine exception with no specified detailed message or embedded throwable object. |
|
IEException(String s)
Constructs a Info*Engine exception with a non-localizable detailed message. |
|
IEException(String rb,
String key,
Object[] params)
Constructs a Info*Engine exception with a localizable detailed message. |
|
IEException(Throwable t)
Constructs a Info*Engine exception with a throwable. |
|
IEException(Throwable t,
String s)
Constructs a Info*Engine exception with an embedded Throwable object and non-localizable detailed message. |
|
IEException(Throwable t,
String rb,
String key,
Object[] params)
Constructs a Info*Engine exception with an embedded Throwable object and a localizable detailed message. |
Method Summary | |
String |
getLocalizedMessage()
Returns the localized message, including nested exception. |
String |
getLocalizedMessage(boolean nested)
Returns the localized message, optionally including nested exception. |
String |
getLocalizedMessage(Locale locale)
Returns the localized message, for the specified locale, including nested exception. |
String |
getLocalizedMessage(Locale locale,
boolean nested)
Returns the localized message, for the specified locale, optionally including nested exception. |
String |
getmessage()
Returns the exception message. |
String |
getMessage()
|
static String |
getNestedExceptionString(String msg)
Returns the localized form of a "nested exception is" string. |
static String |
getNestedExceptionString(String msg,
Locale locale)
Returns the localized form of a "nested exception is" string. |
Throwable |
getNestedThrowable()
Returns the embedded throwable object. |
void |
printStackTrace()
Prints this IEException and the backtrace of its most
deeply nested embedded Throwable to the standard error stream. |
void |
printStackTrace(PrintStream s)
Prints this IEException and the backtrace of its most
deeply nested embedded Throwable to the specified print stream. |
protected void |
setLocalizedMessage(String rb,
String key,
Object[] params)
Sets the localized message for this IEException . |
String |
toString()
Returns a description of this IEException . |
String |
toString(boolean nested)
Returns a description of this IEException . |
Methods inherited from class javax.servlet.jsp.JspException |
getRootCause |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static String GETMESSAGE_LINE_SEPARATOR
public static String TOSTRING_LINE_SEPARATOR
private static String RESOURCE
private Throwable nestedThrowable
private IEMessage message
private boolean calledOnce
Constructor Detail |
public IEException()
public IEException(String s)
s
- the detailed messagepublic IEException(String rb, String key, Object[] params)
public IEException(Throwable t)
t
- the throwable objectpublic IEException(Throwable t, String s)
t
- the embedded Throwable. It may be null.s
- the detailed message. It may be null.public IEException(Throwable t, String rb, String key, Object[] params)
t
- the embedded Throwable. It may be null.rb
- the name of the base resource bundle subclass containing
the localizable message.key
- the key associated with the localizable messageparams
- an optional set of objects to be formatted into
the localizable message text.Method Detail |
public String getMessage()
public String getmessage()
public String getLocalizedMessage()
public String getLocalizedMessage(boolean nested)
nested
- true if nested exceptions should be included in
the message.public String getLocalizedMessage(Locale locale)
getLocalizedMessage
in interface LocalizableMessage
locale
- The locale for which to generate the message.public String getLocalizedMessage(Locale locale, boolean nested)
locale
- The locale for which to generate the message.nested
- true if nested exceptions should be included in
the message.public Throwable getNestedThrowable()
public static String getNestedExceptionString(String msg)
msg
- The current message.public static String getNestedExceptionString(String msg, Locale locale)
msg
- The current message.locale
- The locale to use.public void printStackTrace()
IEException
and the backtrace of its most
deeply nested embedded Throwable to the standard error stream.
public void printStackTrace(PrintStream s)
IEException
and the backtrace of its most
deeply nested embedded Throwable to the specified print stream.
s
- The stream on which to print the stack trace.protected void setLocalizedMessage(String rb, String key, Object[] params)
IEException
.
rb
- The name of the base resource bundle subclass containing
the localizable message.key
- The key associated with the localizable messageparams
- An optional set of objects to be formatted into
the localizable message text.ResourceBundle
,
MessageFormat
public String toString()
IEException
. The
description includes the descriptions of the nested throwable objects
that are embedded within this IEException
.
public String toString(boolean nested)
IEException
. The
description optionally includes the descriptions of the nested throwable
objects that are embedded within this IEException
.
nested
- true if nested exceptions should be included in
the message.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |