public class SearchException
extends java.lang.Exception
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected SearchExceptionCode |
m_exCode |
protected static java.util.Map<java.lang.String,java.util.ResourceBundle> |
m_hmRbs |
protected java.lang.String[] |
m_oaParams |
| Modifier | Constructor and Description |
|---|---|
protected |
SearchException() |
|
SearchException(SearchExceptionCode exCode)
Constructs a SearchException with a SearchExceptionCode.
|
|
SearchException(SearchExceptionCode exCode,
java.lang.Object... args)
Constructs a SearchException with a SearchExceptionCode and an array of
Object arguments.
|
|
SearchException(SearchExceptionCode exCode,
java.lang.Throwable throwable)
Constructs a SearchException with a SearchExceptionCode and a Throwable
as a nested Exception.
|
|
SearchException(SearchExceptionCode exCode,
java.lang.Throwable throwable,
java.lang.Object... args)
Constructs a SearchException with a SearchExceptionCode, a Throwable
as a nested Exception, and an array of Object arguments.
|
| Modifier and Type | Method and Description |
|---|---|
SearchExceptionCode |
getErrorCode()
Returns the error code associated with this exception.
|
java.lang.String |
getLocalizedMessage()
Returns a message in the default locale format.
|
java.lang.String |
getLocalizedMessage(java.util.Locale locale)
Returns a message in the format of the locale passed as an argument.
|
java.lang.String |
getMessage()
Override method in base class to return a message in the default locale
format.
|
protected java.lang.String |
getMessagePrivate(java.util.Locale locale)
Returns a exception message in the locale specific format.
|
java.lang.String[] |
getParams()
Returns the arguments for the format messaging.
|
protected java.util.ResourceBundle |
getResourceBundle(java.util.Locale locale)
Returns the resource bundle which is used in formatting the messages,
given the locale.
|
protected java.lang.String |
getResourceBundleName()
Returns the name of the ResourceBundle to be used
by this subclass of the SearchException.
|
protected java.lang.String[] m_oaParams
protected SearchExceptionCode m_exCode
protected static java.util.Map<java.lang.String,java.util.ResourceBundle> m_hmRbs
protected SearchException()
public SearchException(SearchExceptionCode exCode)
exCode - identifies the exception code associated with this exception. it will
be used as a key into the exception resource bundle to get the localized execptin
message.public SearchException(SearchExceptionCode exCode, java.lang.Object... args)
exCode - identifies the exception code associated with this exception. it will
be used as a key into the exception resource bundle to get the localized execptin
message.args - argument(s) for the formatting of the message associated with this exceptionpublic SearchException(SearchExceptionCode exCode, java.lang.Throwable throwable)
exCode - identifies the exception code associated with this exception. it will
be used as a key into the exception resource bundle to get the localized execptin
message.throwable - a throwable that causes this SearchException to be raisedpublic SearchException(SearchExceptionCode exCode, java.lang.Throwable throwable, java.lang.Object... args)
exCode - identifies the exception code associated with this exception. it will
be used as a key into the exception resource bundle to get the localized execptin
message.throwable - a throwable that cause this SearchException to be raisedargs - argument(s) for the formatting of the message associated with this exceptionpublic java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic java.lang.String getLocalizedMessage()
getLocalizedMessage in class java.lang.Throwablepublic java.lang.String getLocalizedMessage(java.util.Locale locale)
locale - a Locale with which we wish to get the message forpublic SearchExceptionCode getErrorCode()
public java.lang.String[] getParams()
protected java.lang.String getResourceBundleName()
protected java.lang.String getMessagePrivate(java.util.Locale locale)
locale - Locale to get the message inprotected final java.util.ResourceBundle getResourceBundle(java.util.Locale locale)
throws java.util.MissingResourceException
locale - Locale of the resource bundle soughtjava.util.MissingResourceException