org.apache.xml.security.exceptions
Class XMLSecurityException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.apache.xml.security.exceptions.XMLSecurityException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AlgorithmAlreadyRegisteredException, Base64DecodingException, CanonicalizationException, ContentHandlerAlreadyRegisteredException, InvalidCanonicalizerException, InvalidKeyResolverException, InvalidTransformException, KeyResolverException, ResourceResolverException, StorageResolverException, TransformationException, XMLEncryptionException, XMLSignatureException

public class XMLSecurityException
extends java.lang.Exception

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);
 }
 

Author:
Christian Geuer-Pollmann
See Also:
Serialized Form

Constructor Summary
XMLSecurityException()
          Constructor XMLSecurityException
XMLSecurityException(java.lang.String message)
          Constructor XMLSecurityException
XMLSecurityException(java.lang.String msgID, java.lang.Object[] exArgs)
          Constructor XMLSecurityException
XMLSecurityException(java.lang.String msgID, java.lang.Object[] exArgs, java.lang.Exception originalException)
          Constructor XMLSecurityException
XMLSecurityException(java.lang.String message, java.lang.Throwable cause)
           
XMLSecurityException(java.lang.Throwable cause)
          Constructor XMLSecurityException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XMLSecurityException

public XMLSecurityException()
Constructor XMLSecurityException


XMLSecurityException

public XMLSecurityException(java.lang.String message)
Constructor XMLSecurityException


XMLSecurityException

public XMLSecurityException(java.lang.String msgID,
                            java.lang.Object[] exArgs)
Constructor XMLSecurityException

Parameters:
msgID -
exArgs -

XMLSecurityException

public XMLSecurityException(java.lang.Throwable cause)
Constructor XMLSecurityException


XMLSecurityException

public XMLSecurityException(java.lang.String message,
                            java.lang.Throwable cause)
Parameters:
message -
cause -

XMLSecurityException

public XMLSecurityException(java.lang.String msgID,
                            java.lang.Object[] exArgs,
                            java.lang.Exception originalException)
Constructor XMLSecurityException

Parameters:
msgID -
exArgs -
originalException -