|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.netscape.certsrv.base.EBaseException
public class EBaseException
An exception with localizable error messages. It is the base class for all exceptions in certificate server.
MessageFormat,
BaseResources,
Serialized Form| Field Summary | |
|---|---|
java.lang.Object[] |
mParams
Parameters to the exception error message. |
| Constructor Summary | |
|---|---|
EBaseException(java.lang.String msgFormat)
Constructs an instance of this exception with the given resource key. |
|
EBaseException(java.lang.String msgFormat,
java.lang.Exception param)
Constructs an instance of the exception given the resource key and a exception parameter. |
|
EBaseException(java.lang.String msgFormat,
java.lang.Object[] params)
Constructs an instance of this exception given the resource key and an array of parameters. |
|
EBaseException(java.lang.String msgFormat,
java.lang.String param)
Constructs an instance of this exception with the given resource key and a parameter as a string. |
|
| Method Summary | |
|---|---|
protected java.lang.String |
getBundleName()
Returns the given resource bundle name. |
java.lang.Object[] |
getParameters()
Returns the list of parameters. |
java.lang.String |
toString()
Returns the exception string in the default locale. |
java.lang.String |
toString(java.util.Locale locale)
Returns the exception string in the given locale. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public java.lang.Object[] mParams
| Constructor Detail |
|---|
public EBaseException(java.lang.String msgFormat)
new EBaseException(BaseResources.PERMISSION_DENIED);
new EBaseException("An plain error message");
msgFormat - The error message resource key.
public EBaseException(java.lang.String msgFormat,
java.lang.String param)
new EBaseException(BaseResource.NO_CONFIG_FILE, fileName);
msgFormat - exception details in message string formatparam - message string parameter
public EBaseException(java.lang.String msgFormat,
java.lang.Exception param)
try {
...
} catch (IOExeption e) {
throw new EBaseException(BaseResources.INTERNAL_ERROR_1, e);
}
msgFormat - The resource keyparam - The parameter as an exception
public EBaseException(java.lang.String msgFormat,
java.lang.Object[] params)
msgFormat - The resource keyparams - Array of params| Method Detail |
|---|
public java.lang.Object[] getParameters()
public java.lang.String toString()
toString in class java.lang.Throwablepublic java.lang.String toString(java.util.Locale locale)
locale - The locale
protected java.lang.String getBundleName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||