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 String | msgID
Field msgID |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | |
| public | |
| public | |
| public | XMLSecurityException(Exception originalException, String msgID, Object[] exArgs)
Constructor XMLSecurityException |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public Exception | |
| public void | |
| public String |
| msgID | back to summary |
|---|---|
| protected String msgID Field msgID | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| XMLSecurityException | back to summary |
|---|---|
| public XMLSecurityException() Constructor XMLSecurityException | |
| XMLSecurityException | back to summary |
|---|---|
| public XMLSecurityException(String msgID) Constructor XMLSecurityException | |
| XMLSecurityException | back to summary |
|---|---|
| public XMLSecurityException(String msgID, Object[] exArgs) Constructor XMLSecurityException | |
| XMLSecurityException | back to summary |
|---|---|
| public XMLSecurityException(Exception originalException) Constructor XMLSecurityException | |
| XMLSecurityException | back to summary |
|---|---|
| public XMLSecurityException(Exception originalException, String msgID) Constructor XMLSecurityException | |
| XMLSecurityException | back to summary |
|---|---|
| public XMLSecurityException(String msgID, Exception originalException)
Deprecated
| |
| XMLSecurityException | back to summary |
|---|---|
| public XMLSecurityException(Exception originalException, String msgID, Object[] exArgs) Constructor XMLSecurityException | |
| XMLSecurityException | back to summary |
|---|---|
| public XMLSecurityException(String msgID, Object[] exArgs, Exception originalException)
Deprecated
| |
| getMsgID | back to summary |
|---|---|
| public String getMsgID() Method getMsgID
| |
| getOriginalException | back to summary |
|---|---|
| public Exception getOriginalException() Method getOriginalException
| |
| printStackTrace | back to summary |
|---|---|
| public void printStackTrace() Overrides java. Method printStackTrace
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a short description of this throwable. The result is the concatenation of:
getLocalizedMessage returns null, then just
the class name is returned.
| |