org.osconsulting.jerr.errors
Class JErrConfigError

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.osconsulting.jerr.JErr
              extended by org.osconsulting.jerr.errors.JErrConfigError
All Implemented Interfaces:
java.io.Serializable

public class JErrConfigError
extends JErr

See Also:
Serialized Form

Constructor Summary
JErrConfigError(JErrCode errorCode)
           
JErrConfigError(JErrCode errorCode, java.lang.String arg)
           
JErrConfigError(JErrCode errorCode, java.lang.String[] args)
           
JErrConfigError(JErrCode errorCode, java.lang.String[] args, java.lang.String localizedMessage)
           
JErrConfigError(JErrCode errorCode, java.lang.String[] args, java.lang.String localizedMessage, java.lang.Throwable cause)
           
JErrConfigError(JErrCode errorCode, java.lang.String arg, java.lang.String localizedMessage)
           
JErrConfigError(JErrCode errorCode, java.lang.String arg, java.lang.String localizedMessage, java.lang.Throwable cause)
           
JErrConfigError(JErrCode errorCode, java.lang.String localizedMessage, java.lang.Throwable cause)
           
 
Method Summary
 JErrCode getJErrorCode()
          Gets the error code attached to this error.
 java.lang.String getLocalizedMessage(java.util.Locale locale)
          Gets the localized error message, based on the locale value passed in.
 void setErrorCode(JErrCode jErrorCode)
           
 
Methods inherited from class org.osconsulting.jerr.JErr
getLocalizedMessage, setJErrorCode, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JErrConfigError

public JErrConfigError(JErrCode errorCode)

JErrConfigError

public JErrConfigError(JErrCode errorCode,
                       java.lang.String arg)

JErrConfigError

public JErrConfigError(JErrCode errorCode,
                       java.lang.String[] args)

JErrConfigError

public JErrConfigError(JErrCode errorCode,
                       java.lang.String arg,
                       java.lang.String localizedMessage,
                       java.lang.Throwable cause)

JErrConfigError

public JErrConfigError(JErrCode errorCode,
                       java.lang.String[] args,
                       java.lang.String localizedMessage,
                       java.lang.Throwable cause)

JErrConfigError

public JErrConfigError(JErrCode errorCode,
                       java.lang.String arg,
                       java.lang.String localizedMessage)

JErrConfigError

public JErrConfigError(JErrCode errorCode,
                       java.lang.String[] args,
                       java.lang.String localizedMessage)

JErrConfigError

public JErrConfigError(JErrCode errorCode,
                       java.lang.String localizedMessage,
                       java.lang.Throwable cause)
Method Detail

getJErrorCode

public JErrCode getJErrorCode()
Description copied from class: JErr
Gets the error code attached to this error.

Overrides:
getJErrorCode in class JErr
Returns:
the error code.

setErrorCode

public void setErrorCode(JErrCode jErrorCode)

getLocalizedMessage

public java.lang.String getLocalizedMessage(java.util.Locale locale)
Description copied from class: JErr
Gets the localized error message, based on the locale value passed in. For the search strategy of the localized message see MessageStore.getLocalizedMessage(). Note that a Locale is made up of Language, Country and Variant.

Overrides:
getLocalizedMessage in class JErr
Parameters:
locale - the locale used to find the localized message.
Returns:
the localized error message


Copyright © 2006-2007. All Rights Reserved.