public class XMLSecurityRuntimeException
extends java.lang.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); }
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
|
void |
printStackTrace()
Method printStackTrace
|
void |
printStackTrace(java.io.PrintStream printstream)
Method printStackTrace
|
void |
printStackTrace(java.io.PrintWriter printwriter)
Method printStackTrace
|
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.Throwable
public void printStackTrace()
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintWriter printwriter)
printStackTrace
in class java.lang.Throwable
printwriter
- public void printStackTrace(java.io.PrintStream printstream)
printStackTrace
in class java.lang.Throwable
printstream
- public java.lang.Exception getOriginalException()