public class PolicyException extends Exception
PolicyException
is the basic exception for the
the policy component. All other exceptions in this package are derived
from this exception.Constructor and Description |
---|
PolicyException(String message)
Constructs an instance of the
PolicyException class. |
PolicyException(String rbName,
String errorCode,
Object[] args,
Throwable nestedException)
Constructs an instance of
PolicyException to pass the
localized error message
At this level, the locale of the caller is not known and it is
not possible to throw localized error message at this level. |
PolicyException(String message,
Throwable nestedException)
Constructs an instance of the
PolicyException class. |
PolicyException(Throwable nestedException)
Constructs an instance of the
PolicyException class. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public PolicyException(String message)
PolicyException
class.message
- The message provided by the object that is throwing the
exception.public PolicyException(Throwable nestedException)
PolicyException
class.nestedException
- the exception caught by the code block creating
this exceptionpublic PolicyException(String message, Throwable nestedException)
PolicyException
class.message
- message of this exceptionnestedException
- the exception caught by the code block creating
this exceptionpublic PolicyException(String rbName, String errorCode, Object[] args, Throwable nestedException)
PolicyException
to pass the
localized error message
At this level, the locale of the caller is not known and it is
not possible to throw localized error message at this level.
Instead this constructor provides Resource Bundle name and error code
for correctly locating the error message. The default
getMessage()
will always return English messages only. This
is in consistent with current JRErbName
- Resource Bundle Name to be used for getting
localized error message.errorCode
- Key to resource bundle. You can use
ResourceBundle rb = ResourceBunde.getBundle (rbName,locale); String localizedStr = rb.getString(errorCode);
args
- arguments to message. If it is not present pass the
as nullnestedException
- The root cause of this errorCopyright © 2010-2018, ForgeRock All Rights Reserved.