Top Description Fields Constructors
org.jdom

public Class IllegalAddException

extends IllegalArgumentException
Class Inheritance

Thrown when trying to add a illegal object to a JDOM construct.
Authors
Brett McLaughlin, Jason Hunter
Version
$Revision: 1.26 $, $Date: 2007/11/10 05:28:59 $

Field Summary

Modifier and TypeField and Description
private static final String

Constructor Summary

AccessConstructor and Description
pack-priv
IllegalAddException(Element
Element that Attribute couldn't be added to
base
,
Attribute
Attribute that could not be added
added
,
String
cause of the problem
reason
)

This will create an Exception indicating that the addition of the Attribute to the Element is illegal.

pack-priv
IllegalAddException(Element
Element that the child couldn't be added to
base
,
Element
Element that could not be added
added
,
String
cause of the problem
reason
)

This will create an Exception indicating that the addition of the Element to parent is illegal.

pack-priv
IllegalAddException(Element
Element that could not be added
added
,
String
cause of the problem
reason
)

This will create an Exception indicating that the addition of the Element to the Document is illegal.

pack-priv
IllegalAddException(Element
Element that the ProcessingInstruction couldn't be added to
base
,
ProcessingInstruction
ProcessingInstruction that could not be added
added
,
String
cause of the problem
reason
)

This will create an Exception indicating that the addition of the ProcessingInstruction to the Element is illegal.

pack-priv
IllegalAddException(ProcessingInstruction
ProcessingInstruction that could not be added
added
,
String
cause of the problem
reason
)

This will create an Exception indicating that the addition of the ProcessingInstruction to the Document is illegal.

pack-priv
IllegalAddException(Element
Element that the Comment couldn't be added to
base
,
Comment
Comment that could not be added
added
,
String
cause of the problem
reason
)

This will create an Exception indicating that the addition of the Comment to the Element is illegal.

pack-priv
IllegalAddException(Element
Element that the CDATA couldn't be added to
base
,
CDATA
CDATA that could not be added
added
,
String
cause of the problem
reason
)

This will create an Exception indicating that the addition of the CDATA

pack-priv
IllegalAddException(Element
Element that the Comment couldn't be added to
base
,
Text
Text that could not be added
added
,
String
cause of the problem
reason
)

This will create an Exception indicating that the addition of the Text to the Element is illegal.

pack-priv
IllegalAddException(Comment
Comment that could not be added
added
,
String
cause of the problem
reason
)

This will create an Exception indicating that the addition of the Comment to the Document is illegal.

pack-priv
IllegalAddException(Element
Element that the EntityRef couldn't be added to
base
,
EntityRef
EntityRef reference that could not be added
added
,
String
cause of the problem
reason
)

This will create an Exception indicating that the addition of the EntityRef to the Element is illegal.

pack-priv
IllegalAddException(Element
Element that the Namespace couldn't be added to
base
,
Namespace
Namespace that could not be added
added
,
String
cause of the problem
reason
)

This will create an Exception indicating that the addition of the Namespace to the Element is illegal.

pack-priv
IllegalAddException(DocType
DocType that could not be added
added
,
String
cause of the problem
reason
)

This will create an Exception indicating that the addition of the DocType to the Document is illegal.

public
IllegalAddException(String
cause of the problem
reason
)

This will create an Exception with the specified error message.

Field Detail

CVS_IDback to summary
private static final String CVS_ID

Constructor Detail

IllegalAddExceptionback to summary
pack-priv IllegalAddException(Element base, Attribute added, String reason)

This will create an Exception indicating that the addition of the Attribute to the Element is illegal.

Parameters
base:Element

Element that Attribute couldn't be added to

added:Attribute

Attribute that could not be added

reason:String

cause of the problem

IllegalAddExceptionback to summary
pack-priv IllegalAddException(Element base, Element added, String reason)

This will create an Exception indicating that the addition of the Element to parent is illegal.

Parameters
base:Element

Element that the child couldn't be added to

added:Element

Element that could not be added

reason:String

cause of the problem

IllegalAddExceptionback to summary
pack-priv IllegalAddException(Element added, String reason)

This will create an Exception indicating that the addition of the Element to the Document is illegal.

Parameters
added:Element

Element that could not be added

reason:String

cause of the problem

IllegalAddExceptionback to summary
pack-priv IllegalAddException(Element base, ProcessingInstruction added, String reason)

This will create an Exception indicating that the addition of the ProcessingInstruction to the Element is illegal.

Parameters
base:Element

Element that the ProcessingInstruction couldn't be added to

added:ProcessingInstruction

ProcessingInstruction that could not be added

reason:String

cause of the problem

IllegalAddExceptionback to summary
pack-priv IllegalAddException(ProcessingInstruction added, String reason)

This will create an Exception indicating that the addition of the ProcessingInstruction to the Document is illegal.

Parameters
added:ProcessingInstruction

ProcessingInstruction that could not be added

reason:String

cause of the problem

IllegalAddExceptionback to summary
pack-priv IllegalAddException(Element base, Comment added, String reason)

This will create an Exception indicating that the addition of the Comment to the Element is illegal.

Parameters
base:Element

Element that the Comment couldn't be added to

added:Comment

Comment that could not be added

reason:String

cause of the problem

IllegalAddExceptionback to summary
pack-priv IllegalAddException(Element base, CDATA added, String reason)

This will create an Exception indicating that the addition of the CDATA

Parameters
base:Element

Element that the CDATA couldn't be added to

added:CDATA

CDATA that could not be added

reason:String

cause of the problem

IllegalAddExceptionback to summary
pack-priv IllegalAddException(Element base, Text added, String reason)

This will create an Exception indicating that the addition of the Text to the Element is illegal.

Parameters
base:Element

Element that the Comment couldn't be added to

added:Text

Text that could not be added

reason:String

cause of the problem

IllegalAddExceptionback to summary
pack-priv IllegalAddException(Comment added, String reason)

This will create an Exception indicating that the addition of the Comment to the Document is illegal.

Parameters
added:Comment

Comment that could not be added

reason:String

cause of the problem

IllegalAddExceptionback to summary
pack-priv IllegalAddException(Element base, EntityRef added, String reason)

This will create an Exception indicating that the addition of the EntityRef to the Element is illegal.

Parameters
base:Element

Element that the EntityRef couldn't be added to

added:EntityRef

EntityRef reference that could not be added

reason:String

cause of the problem

IllegalAddExceptionback to summary
pack-priv IllegalAddException(Element base, Namespace added, String reason)

This will create an Exception indicating that the addition of the Namespace to the Element is illegal.

Parameters
base:Element

Element that the Namespace couldn't be added to

added:Namespace

Namespace that could not be added

reason:String

cause of the problem

IllegalAddExceptionback to summary
pack-priv IllegalAddException(DocType added, String reason)

This will create an Exception indicating that the addition of the DocType to the Document is illegal.

Parameters
added:DocType

DocType that could not be added

reason:String

cause of the problem

IllegalAddExceptionback to summary
public IllegalAddException(String reason)

This will create an Exception with the specified error message.

Parameters
reason:String

cause of the problem