Class CfgException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.directory.fortress.core.BaseException
-
- org.apache.directory.fortress.core.SecurityException
-
- org.apache.directory.fortress.core.CfgException
-
- All Implemented Interfaces:
Serializable
,StandardException
public class CfgException extends SecurityException
This exception extendsSecurityException
and is thrown when Fortress cannot find correct cfg for a particular entity. See theGlobalErrIds
javadoc for list of error ids.- Author:
- Apache Directory Project
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CfgException(int errorId, String msg)
Create an exception with an error code that maps toGlobalErrIds
and message text.CfgException(int errorId, String msg, Exception previousException)
Create exception with error id, message and related exception.
-
Method Summary
-
Methods inherited from class org.apache.directory.fortress.core.BaseException
getErrorId, getHttpStatus, setHttpStatus
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
CfgException
public CfgException(int errorId, String msg)
Create an exception with an error code that maps toGlobalErrIds
and message text.- Parameters:
errorId
- seeGlobalErrIds
for list of valid error codes that can be set. Valid values between 0 & 100_000.msg
- contains textual information including method of origin and description of the root cause.
-
CfgException
public CfgException(int errorId, String msg, Exception previousException)
Create exception with error id, message and related exception.- Parameters:
errorId
- seeGlobalErrIds
for list of valid error codes that can be set. Valid values between 0 & 100_000.msg
- contains textual information including method of origin and description of the root cause.previousException
- contains reference to related exception which usually is system related, i.e. ldap.
-
-