public class COTException extends L10NMessageImpl
Constructor and Description |
---|
COTException(String message)
Constructs a new
COTException with the given
message. |
COTException(String errorCode,
Object[] args)
Constructs a new
COTException without a nested
Throwable using default resource bundle. |
COTException(String rbName,
String errorCode,
Object[] args)
Constructs a new
COTException without a nested
Throwable . |
COTException(Throwable t)
Constructs an
COTException with given
Throwable . |
getErrorCode, getL10NMessage, getMessage, getMessageArgs, getResourceBundleName
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public COTException(String errorCode, Object[] args)
COTException
without a nested
Throwable
using default resource bundle.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 nullpublic COTException(String rbName, String errorCode, Object[] args)
COTException
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 nullpublic COTException(String message)
COTException
with the given
message.message
- message for this exception. This message can be later
retrieved by getMessage()
method.public COTException(Throwable t)
COTException
with given
Throwable
.t
- Exception nested in the new exception.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.