public class XMLSecurityRuntimeException extends RuntimeException
xmlsecurity_en.properties
file contains this line:
xml.WrongElement = Can't create a {0} from a {1} elementUsage 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 |
---|
XMLSecurityRuntimeException()
Constructor XMLSecurityRuntimeException
|
XMLSecurityRuntimeException(Exception originalException)
Constructor XMLSecurityRuntimeException
|
XMLSecurityRuntimeException(String msgID)
Constructor XMLSecurityRuntimeException
|
XMLSecurityRuntimeException(String msgID,
Exception originalException)
Constructor XMLSecurityRuntimeException
|
XMLSecurityRuntimeException(String msgID,
Object[] exArgs)
Constructor XMLSecurityRuntimeException
|
XMLSecurityRuntimeException(String msgID,
Object[] exArgs,
Exception originalException)
Constructor XMLSecurityRuntimeException
|
Modifier and Type | Method and Description |
---|---|
String |
getMsgID()
Method getMsgID
|
Exception |
getOriginalException()
Method getOriginalException
|
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
protected String msgID
public XMLSecurityRuntimeException()
public XMLSecurityRuntimeException(String msgID)
msgID
- public XMLSecurityRuntimeException(String msgID, Object[] exArgs)
msgID
- exArgs
- public XMLSecurityRuntimeException(Exception originalException)
originalException
- public XMLSecurityRuntimeException(String msgID, Exception originalException)
msgID
- originalException
- Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.