Top Description Fields Constructors
org.jdom2

public Class IllegalTargetException

extends IllegalArgumentException
Class Inheritance

Thrown when a target is supplied in construction of a JDOM ProcessingInstruction, and that name breaks XML naming conventions.
Author
Brett McLaughlin

Field Summary

Modifier and TypeField and Description
private static final long
serialVersionUID

Hides java.lang.IllegalArgumentException.serialVersionUID.

Standard JDOM2 Exception Serialization.

Constructor Summary

AccessConstructor and Description
pack-priv
IllegalTargetException(String
String target that breaks rules.
target
,
String
String message or reason target is illegal.
reason
)

This will create an Exception indicating that the specified target is illegal for the ProcessingInstruction it was supplied to.

public
IllegalTargetException(String
cause of the problem
reason
)

Creates an exception with the specified error message.

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.IllegalArgumentException.serialVersionUID.

Standard JDOM2 Exception Serialization. Default.

Constructor Detail

IllegalTargetExceptionback to summary
pack-priv IllegalTargetException(String target, String reason)

This will create an Exception indicating that the specified target is illegal for the ProcessingInstruction it was supplied to.

Parameters
target:String

String target that breaks rules.

reason:String

String message or reason target is illegal.

IllegalTargetExceptionback to summary
public IllegalTargetException(String reason)

Creates an exception with the specified error message.

Parameters
reason:String

cause of the problem