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