public class IllegalTargetException
extends java.lang.IllegalArgumentException
IllegalTargetException
is thrown when a target is supplied in construction, etc.,
of a JDOM
, and that name breaks
XML naming conventions.
ProcessingInstruction
Constructor and Description |
---|
IllegalTargetException(java.lang.String target)
This will create an
Exception indicating
that the specified target is illegal for the
it was supplied to. |
IllegalTargetException(java.lang.String target,
java.lang.String reason)
This will create an
Exception indicating
that the specified target is illegal for the
it was supplied to. |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getMessage(java.lang.String target) |
static java.lang.String |
getMessage(java.lang.String target,
java.lang.String reason) |
public IllegalTargetException(java.lang.String target, java.lang.String reason)
This will create an Exception
indicating
that the specified target is illegal for the
it was supplied to.
ProcessingInstruction
target
- String
target that breaks rules.reason
- String
message or reason target is illegal.public IllegalTargetException(java.lang.String target)
This will create an Exception
indicating
that the specified target is illegal for the
it was supplied to.
ProcessingInstruction
target
- String
target that breaks rules.Copyright (c) 2016 Software AG. All Rights Reserved.