de.mid.innovator.util
Class InoNlsException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by de.mid.innovator.util.InoNlsException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
InoNetException, InvalidArgumentException, MissingArgumentException, SrvErrorException, UnknownArgumentException

public class InoNlsException
extends Exception

The class is used as a general base class for all kinds of Innovator exceptions that the user needs to see. It provides the ability to show a local dependent exception. The exception only handles the message keys until the message formatter is called by the method getLocalizedMessage().

Author:
borschet
See Also:
Serialized Form

Constructor Summary
protected InoNlsException(InoNlsException src)
           
  InoNlsException(Package p, String shortKey, Object... args)
           
  InoNlsException(String key, Object... args)
           
  InoNlsException(String bundleName, Package p, String shortKey, Object... args)
           
  InoNlsException(Throwable cause, Package p, String key, Object... args)
           
 
Method Summary
 String getKey()
           
 String getLocalizedMessage()
           
 String getLocalizedMessage(Locale locale)
           
 String getMessage()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InoNlsException

protected InoNlsException(InoNlsException src)

InoNlsException

public InoNlsException(Package p,
                       String shortKey,
                       Object... args)

InoNlsException

public InoNlsException(String key,
                       Object... args)

InoNlsException

public InoNlsException(String bundleName,
                       Package p,
                       String shortKey,
                       Object... args)

InoNlsException

public InoNlsException(Throwable cause,
                       Package p,
                       String key,
                       Object... args)
Method Detail

getKey

public String getKey()

getLocalizedMessage

public String getLocalizedMessage()
Overrides:
getLocalizedMessage in class Throwable

getLocalizedMessage

public String getLocalizedMessage(Locale locale)

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable