Class BaseRuntimeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.directory.fortress.core.BaseRuntimeException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CfgRuntimeException
public abstract class BaseRuntimeException extends RuntimeException
Base runtime exception class for Fortress runtime exceptions. See theGlobalErrIds
javadoc for list of error ids.- Author:
- Apache Directory Project
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BaseRuntimeException(int errorId, String msgParam)
protected
BaseRuntimeException(int errorId, String msgParam, Throwable previousException)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getErrorId()
Return the error id that is defined by this classGlobalErrIds
.String
getMsg()
Return the message for current exception.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
BaseRuntimeException
protected BaseRuntimeException(int errorId, String msgParam, Throwable previousException)
- Parameters:
errorId
- int contains the error id which is defined hereGlobalErrIds
.msgParam
- contains message pertaining to exception.previousException
- contains reference to related exception which usually is system related, i.e. ldap.
-
BaseRuntimeException
protected BaseRuntimeException(int errorId, String msgParam)
- Parameters:
errorId
- int contains the error id which is defined hereGlobalErrIds
.msgParam
- contains message pertaining to exception.
-
-
Method Detail
-
getMsg
public String getMsg()
Return the message for current exception.- Returns:
- string contains the error message.
-
getErrorId
public int getErrorId()
Return the error id that is defined by this classGlobalErrIds
.- Returns:
- error id which is defined here
GlobalErrIds
.
-
-