Class XMLSecurityException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.xml.security.exceptions.XMLSecurityException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AlgorithmAlreadyRegisteredException
,Base64DecodingException
,CanonicalizationException
,ContentHandlerAlreadyRegisteredException
,InvalidCanonicalizerException
,InvalidKeyResolverException
,InvalidTransformException
,KeyResolverException
,ResourceResolverException
,StorageResolverException
,TransformationException
,XMLEncryptionException
,XMLSecurityConfigurationException
,XMLSignatureException
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} 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); }
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructor XMLSecurityExceptionXMLSecurityException
(Exception originalException) Constructor XMLSecurityExceptionXMLSecurityException
(Exception originalException, String msgID) Constructor XMLSecurityExceptionXMLSecurityException
(Exception originalException, String msgID, Object[] exArgs) Constructor XMLSecurityExceptionXMLSecurityException
(String msgID) Constructor XMLSecurityExceptionXMLSecurityException
(String msgID, Exception originalException) Deprecated.XMLSecurityException
(String msgID, Object[] exArgs) Constructor XMLSecurityExceptionXMLSecurityException
(String msgID, Object[] exArgs, Exception originalException) Deprecated. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, setStackTrace
-
Field Details
-
msgID
Field msgID
-
-
Constructor Details
-
XMLSecurityException
public XMLSecurityException()Constructor XMLSecurityException -
XMLSecurityException
Constructor XMLSecurityException- Parameters:
msgID
-
-
XMLSecurityException
Constructor XMLSecurityException- Parameters:
msgID
-exArgs
-
-
XMLSecurityException
Constructor XMLSecurityException- Parameters:
originalException
-
-
XMLSecurityException
Constructor XMLSecurityException- Parameters:
msgID
-originalException
-
-
XMLSecurityException
Deprecated. -
XMLSecurityException
Constructor XMLSecurityException- Parameters:
msgID
-exArgs
-originalException
-
-
XMLSecurityException
Deprecated.
-
-
Method Details
-
getMsgID
Method getMsgID- Returns:
- the messageId
-
toString
-
printStackTrace
public void printStackTrace()Method printStackTrace- Overrides:
printStackTrace
in classThrowable
-
getOriginalException
Method getOriginalException- Returns:
- the original exception
-