|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.apache.xml.security.exceptions.XMLSecurityException
public class XMLSecurityException
The mother of all 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 String |
msgID
Field msgID |
| Constructor Summary | |
|---|---|
XMLSecurityException()
Constructor XMLSecurityException |
|
XMLSecurityException(Exception originalException)
Constructor XMLSecurityException |
|
XMLSecurityException(String msgID)
Constructor XMLSecurityException |
|
XMLSecurityException(String msgID,
Exception originalException)
Constructor XMLSecurityException |
|
XMLSecurityException(String msgID,
Object[] exArgs)
Constructor XMLSecurityException |
|
XMLSecurityException(String msgID,
Object[] exArgs,
Exception originalException)
Constructor XMLSecurityException |
|
| Method Summary | |
|---|---|
String |
getMsgID()
Method getMsgID |
Exception |
getOriginalException()
Method getOriginalException |
void |
printStackTrace()
Method printStackTrace |
void |
printStackTrace(PrintStream printstream)
Method printStackTrace |
void |
printStackTrace(PrintWriter printwriter)
Method printStackTrace |
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 String msgID
| Constructor Detail |
|---|
public XMLSecurityException()
public XMLSecurityException(String msgID)
msgID -
public XMLSecurityException(String msgID,
Object[] exArgs)
msgID - exArgs - public XMLSecurityException(Exception originalException)
originalException -
public XMLSecurityException(String msgID,
Exception originalException)
msgID - originalException -
public XMLSecurityException(String msgID,
Object[] exArgs,
Exception originalException)
msgID - exArgs - originalException - | Method Detail |
|---|
public String getMsgID()
public String toString()
toString in class Throwablepublic void printStackTrace()
printStackTrace in class Throwablepublic void printStackTrace(PrintWriter printwriter)
printStackTrace in class Throwableprintwriter - public void printStackTrace(PrintStream printstream)
printStackTrace in class Throwableprintstream - public Exception getOriginalException()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||