public class XMLSecurityException extends Exception
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 |
---|
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
|
Modifier and Type | Method and Description |
---|---|
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() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace
protected String msgID
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 String getMsgID()
public void printStackTrace()
printStackTrace
in class Throwable
public void printStackTrace(PrintWriter printwriter)
printStackTrace
in class Throwable
printwriter
- public void printStackTrace(PrintStream printstream)
printStackTrace
in class Throwable
printstream
- public Exception getOriginalException()
Copyright © 2000-2012 The Apache Software Foundation. All Rights Reserved.