|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.xml.security.exceptions.XMLSecurityRuntimeException
public class XMLSecurityRuntimeException
The mother of all runtime Exceptions in this bundle. It allows exceptions to have
their messages translated to the different locales.
The 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);
}
| Field Summary | |
|---|---|
protected java.lang.String |
msgID
Field msgID |
| Constructor Summary | |
|---|---|
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 |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String msgID
| Constructor Detail |
|---|
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 - | Method Detail |
|---|
public java.lang.String getMsgID()
public java.lang.String toString()
toString in class java.lang.Throwablepublic void printStackTrace()
printStackTrace in class java.lang.Throwablepublic void printStackTrace(java.io.PrintWriter printwriter)
printStackTrace in class java.lang.Throwableprintwriter - public void printStackTrace(java.io.PrintStream printstream)
printStackTrace in class java.lang.Throwableprintstream - public java.lang.Exception getOriginalException()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||