public class XMLSecurityException extends Exception
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);
}
| Constructor and Description |
|---|
XMLSecurityException()
Constructor XMLSecurityException
|
XMLSecurityException(Exception originalException)
Constructor XMLSecurityException
|
XMLSecurityException(Exception originalException,
String msgID)
Constructor XMLSecurityException
|
XMLSecurityException(Exception originalException,
String msgID,
Object[] exArgs)
Constructor XMLSecurityException
|
XMLSecurityException(String msgID)
Constructor XMLSecurityException
|
XMLSecurityException(String msgID,
Exception originalException)
Deprecated.
|
XMLSecurityException(String msgID,
Object[] exArgs)
Constructor XMLSecurityException
|
XMLSecurityException(String msgID,
Object[] exArgs,
Exception originalException)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getMsgID()
Method getMsgID
|
Exception |
getOriginalException()
Method getOriginalException
|
void |
printStackTrace()
Method printStackTrace
|
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, setStackTraceprotected String msgID
public XMLSecurityException()
public XMLSecurityException(String msgID)
msgID - public XMLSecurityException(String msgID, Object[] exArgs)
msgID - exArgs - public XMLSecurityException(Exception originalException)
originalException - public XMLSecurityException(Exception originalException, String msgID)
msgID - originalException - @Deprecated public XMLSecurityException(String msgID, Exception originalException)
public XMLSecurityException(Exception originalException, String msgID, Object[] exArgs)
msgID - exArgs - originalException - @Deprecated public XMLSecurityException(String msgID, Object[] exArgs, Exception originalException)
public String getMsgID()
public void printStackTrace()
printStackTrace in class Throwablepublic Exception getOriginalException()
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.