public class DiscoveryException extends L10NMessageImpl
Constructor and Description |
---|
DiscoveryException(String s)
Creates an
DiscoveryException with a message. |
DiscoveryException(String rbName,
String errorCode,
Object[] args)
Constructs a new
DiscoveryException without a nested
Throwable . |
DiscoveryException(Throwable t)
Constructs with
Throwable object. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public DiscoveryException(String s)
DiscoveryException
with a message.s
- exception message.public DiscoveryException(Throwable t)
Throwable
object.t
- Throwable
objectpublic DiscoveryException(String rbName, String errorCode, Object[] args)
DiscoveryException
without a nested
Throwable
.rbName
- 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 them
as nullCopyright © 2010-2018, ForgeRock All Rights Reserved.