public class XMLSecurityRuntimeException
extends java.lang.RuntimeException
xmlsecurity_en.properties file contains this line:
xml.WrongElement = Can't create a {0} from a {1} element
Usage in the Java source is:
{
Object exArgs[] = { Constants._TAG_TRANSFORMS, "BadElement" };
throw new XMLSecurityException("xml.WrongElement", exArgs);
}
Additionally, if another Exception has been caught, we can supply it, too>
try {
...
} catch (Exception oldEx) {
Object exArgs[] = { Constants._TAG_TRANSFORMS, "BadElement" };
throw new XMLSecurityException("xml.WrongElement", exArgs, oldEx);
}
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
msgID
Field msgID
|
| Constructor and Description |
|---|
XMLSecurityRuntimeException()
Constructor XMLSecurityRuntimeException
|
XMLSecurityRuntimeException(java.lang.Exception originalException)
Constructor XMLSecurityRuntimeException
|
XMLSecurityRuntimeException(java.lang.String msgID)
Constructor XMLSecurityRuntimeException
|
XMLSecurityRuntimeException(java.lang.String msgID,
java.lang.Exception originalException)
Constructor XMLSecurityRuntimeException
|
XMLSecurityRuntimeException(java.lang.String msgID,
java.lang.Object[] exArgs)
Constructor XMLSecurityRuntimeException
|
XMLSecurityRuntimeException(java.lang.String msgID,
java.lang.Object[] exArgs,
java.lang.Exception originalException)
Constructor XMLSecurityRuntimeException
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getMsgID()
Method getMsgID
|
java.lang.Exception |
getOriginalException()
Method getOriginalException
|
java.lang.String |
toString() |
public XMLSecurityRuntimeException()
public XMLSecurityRuntimeException(java.lang.String msgID)
msgID - public XMLSecurityRuntimeException(java.lang.String msgID,
java.lang.Object[] exArgs)
msgID - exArgs - public XMLSecurityRuntimeException(java.lang.Exception originalException)
originalException - public XMLSecurityRuntimeException(java.lang.String msgID,
java.lang.Exception originalException)
msgID - originalException - public XMLSecurityRuntimeException(java.lang.String msgID,
java.lang.Object[] exArgs,
java.lang.Exception originalException)
msgID - exArgs - originalException - public java.lang.String getMsgID()
public java.lang.String toString()
toString in class java.lang.Throwablepublic java.lang.Exception getOriginalException()
Copyright © 2007–2023. All rights reserved.