org.opensaml
Class MalformedException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.opensaml.SAMLException
              extended byorg.opensaml.MalformedException
All Implemented Interfaces:
Cloneable, Serializable

public class MalformedException
extends SAMLException
implements Cloneable

Indicates that a SAML construct is invalid "on its face", based on the information available in the XML or the external constraints imposed on its use. Also used to indicate problems with method parameters.

Author:
Scott Cantor
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.opensaml.SAMLException
codes, config, e, log, msg, parentObject, REQUESTER, RESPONDER, root, SUCCESS, VERSION
 
Constructor Summary
  MalformedException(Collection codes, Exception e)
          Creates a new MalformedException wrapping an existing exception
  MalformedException(Collection codes, String msg)
          Creates a new MalformedException
  MalformedException(Collection codes, String msg, Exception e)
          Creates a new MalformedException from an existing exception.
protected MalformedException(Element e)
          Creates a new MalformedException
  MalformedException(String msg)
          Creates a new MalformedException
  MalformedException(String msg, Exception e)
          Creates a new MalformedException
 
Methods inherited from class org.opensaml.SAMLException
clone, fromDOM, getCodes, getException, getInstance, getInstance, getMessage, getParent, setParent, toDOM, toDOM, toDOM, toDOM, toStream, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MalformedException

protected MalformedException(Element e)
                      throws SAMLException
Creates a new MalformedException

Parameters:
e - The root of a DOM tree
Throws:
SAMLException - Raised if an exception occurs while constructing the object.

MalformedException

public MalformedException(String msg)
Creates a new MalformedException

Parameters:
msg - The detail message

MalformedException

public MalformedException(String msg,
                          Exception e)
Creates a new MalformedException

Parameters:
msg - The detail message
e - The exception to be wrapped in a MalformedException

MalformedException

public MalformedException(Collection codes,
                          String msg)
Creates a new MalformedException

Parameters:
codes - A collection of QNames
msg - The detail message

MalformedException

public MalformedException(Collection codes,
                          Exception e)
Creates a new MalformedException wrapping an existing exception

The existing exception will be embedded in the new one, and its message will become the default message for the MalformedException.

Parameters:
codes - A collection of QNames
e - The exception to be wrapped in a MalformedException

MalformedException

public MalformedException(Collection codes,
                          String msg,
                          Exception e)
Creates a new MalformedException from an existing exception.

The existing exception will be embedded in the new one, but the new exception will have its own message.

Parameters:
codes - A collection of QNames
msg - The detail message
e - The exception to be wrapped in a MalformedException


Copyright ? 2005 UCAID. All Rights Reserved.