com.ptc.netmarkets.model
Class NmException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bywt.util.WTException
              extended bycom.ptc.netmarkets.model.NmException
All Implemented Interfaces:
LocalizableMessage, Message, Serializable
Direct Known Subclasses:
NmConsoleOpenException, NmUserException, NmWizardConfirm

public class NmException
extends WTException

See Also:
Serialized Form

Field Summary
private  boolean toEscape
          To indicate this this exception is to escape from jsp page without any messages.
 
Fields inherited from class wt.util.WTException
GETMESSAGE_LINE_SEPARATOR, LINE_SEPARATOR, SPACE_SEPARATOR, TOSTRING_LINE_SEPARATOR
 
Fields inherited from class java.lang.Exception
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
NmException()
          Constructs a Netmarkets exception with no specified detailed message or embedded throwable object.
NmException(String s)
          Constructs a Netmarkets exception with a non-localizable detailed message.
NmException(String rb, String key, Object[] params)
           
NmException(Throwable t)
           
NmException(Throwable t, String s)
          Constructs a Netmarkets exception with an embedded Throwable object and non-localizable detailed message.
NmException(Throwable t, String rb, String key, Object[] params)
          Constructs a Netmarkets exception with an embedded Throwable object and a localizable detailed message.
 
Method Summary
 boolean isToEscape()
           
 void setToEscape(boolean a_toEscape)
           
 
Methods inherited from class wt.util.WTException
getAdditionalMessageArray, getAdditionalMessages, getAdditionalMessages, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getNestedExceptionString, getNestedExceptionString, getNestedThrowable, getStandardMessage, getStandardMessage, printStackTrace, printStackTrace, printStackTrace, setLocalizedMessage, toString, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getMessage, getStackTrace, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

toEscape

private boolean toEscape
To indicate this this exception is to escape from jsp page without any messages.

Constructor Detail

NmException

public NmException()
Constructs a Netmarkets exception with no specified detailed message or embedded throwable object.

Supported API: true


NmException

public NmException(String s)
Constructs a Netmarkets exception with a non-localizable detailed message.

Supported API: true

Parameters:
s - the detailed message

NmException

public NmException(String rb,
                   String key,
                   Object[] params)

NmException

public NmException(Throwable t)

NmException

public NmException(Throwable t,
                   String s)
Constructs a Netmarkets exception with an embedded Throwable object and non-localizable detailed message.

Supported API: true

Parameters:
t - the embedded Throwable. It may be null.
s - the detailed message. It may be null.

NmException

public NmException(Throwable t,
                   String rb,
                   String key,
                   Object[] params)
Constructs a Netmarkets exception with an embedded Throwable object and a localizable detailed message.

Supported API: true

Parameters:
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 message
params - an optional set of objects to be formatted into the localizable message text.
See Also:
ResourceBundle, MessageFormat
Method Detail

setToEscape

public void setToEscape(boolean a_toEscape)

isToEscape

public boolean isToEscape()