public class NameException extends SemanticException
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DESIGN_EXCEPTION_DOT_FORBIDDEN
Deprecated.
replaced by
DESIGN_EXCEPTION_INVALID_NAME |
static java.lang.String |
DESIGN_EXCEPTION_DUPLICATE
Error code indicating the new name duplicates an existing name in the
same name space.
|
static java.lang.String |
DESIGN_EXCEPTION_HAS_REFERENCES
Error code indicating the element has references, so it cannot be
anonymous.
|
static java.lang.String |
DESIGN_EXCEPTION_INVALID_NAME |
static java.lang.String |
DESIGN_EXCEPTION_INVALID_STYLE_NAME
The style name is invalid for CSS2 specification.
|
static java.lang.String |
DESIGN_EXCEPTION_NAME_FORBIDDEN
Error code indicating the element is not allowed to have name.
|
static java.lang.String |
DESIGN_EXCEPTION_NAME_REQUIRED
Error code indicating the element miss its name, while the name is
required.
|
protected java.lang.String |
name
The new element name.
|
DESIGN_EXCEPTION__EXPORT_ELEMENT_FAIL, element
PLUGIN_ID
Constructor and Description |
---|
NameException(org.eclipse.birt.report.model.core.DesignElement obj,
java.lang.String str,
java.lang.String errCode)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLocalizedMessage() |
java.lang.String |
getName()
Returns the name that caused the error.
|
getElement, getElementName, getMessage
getErrorCode, getLocalizedMessage, getPluginId, getSeverity, setSeverity
protected java.lang.String name
public static final java.lang.String DESIGN_EXCEPTION_NAME_REQUIRED
public static final java.lang.String DESIGN_EXCEPTION_NAME_FORBIDDEN
public static final java.lang.String DESIGN_EXCEPTION_DUPLICATE
public static final java.lang.String DESIGN_EXCEPTION_HAS_REFERENCES
public static final java.lang.String DESIGN_EXCEPTION_DOT_FORBIDDEN
DESIGN_EXCEPTION_INVALID_NAME
public static final java.lang.String DESIGN_EXCEPTION_INVALID_NAME
public static final java.lang.String DESIGN_EXCEPTION_INVALID_STYLE_NAME
public NameException(org.eclipse.birt.report.model.core.DesignElement obj, java.lang.String str, java.lang.String errCode)
obj
- the element being changed.str
- the name that caused the error.errCode
- what went wrong.public java.lang.String getName()
public java.lang.String getLocalizedMessage()
getLocalizedMessage
in class SemanticException
Copyright © 2008 Actuate Corp. All rights reserved.