public class UserPropertyException extends SemanticException
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DESIGN_EXCEPTION_CHOICE_NAME_REQUIRED
Error code indicating the name of the user choice is missing.
|
static java.lang.String |
DESIGN_EXCEPTION_CHOICE_VALUE_REQUIRED
Error code indicating the value of the user choice is missing.
|
static java.lang.String |
DESIGN_EXCEPTION_DUPLICATE_NAME
Error code indicating the new user property duplicates an existing
property name.
|
static java.lang.String |
DESIGN_EXCEPTION_INVALID_CHOICE_VALUE
Error code indicating the choice value is invalid for the user property
type, which is not choice.
|
static java.lang.String |
DESIGN_EXCEPTION_INVALID_DEFAULT_VALUE
Error code indicating the default value is invalid for the user property
type.
|
static java.lang.String |
DESIGN_EXCEPTION_INVALID_DEFINITION
Error code indicating the user property definition is invalid.
|
static java.lang.String |
DESIGN_EXCEPTION_INVALID_DISPLAY_ID
Error code indicating the display name ID is provided, and display name
can not be found.
|
static java.lang.String |
DESIGN_EXCEPTION_INVALID_TYPE
Error code indicating the user property type is invalid.
|
static java.lang.String |
DESIGN_EXCEPTION_MISSING_CHOICES
Error code indicating the user property type is choice, but no choice is
defined.
|
static java.lang.String |
DESIGN_EXCEPTION_NAME_REQUIRED
Error code indicating the use property definition is missing name, while
it must have a name.
|
static java.lang.String |
DESIGN_EXCEPTION_NOT_FOUND
Error code indicating the user property definition is not found.
|
static java.lang.String |
DESIGN_EXCEPTION_USER_PROP_DISALLOWED
Error code indicating the element is not allowed to have user property.
|
protected java.lang.String |
propertyName
The name of the user property affected.
|
DESIGN_EXCEPTION__EXPORT_ELEMENT_FAIL, element
PLUGIN_ID
Constructor and Description |
---|
UserPropertyException(org.eclipse.birt.report.model.core.DesignElement obj,
java.lang.String name,
java.lang.String errCode)
Constructor.
|
UserPropertyException(org.eclipse.birt.report.model.core.DesignElement obj,
java.lang.String name,
java.lang.String errCode,
org.eclipse.birt.report.model.metadata.MetaDataException cause)
Constructor.
|
UserPropertyException(org.eclipse.birt.report.model.core.DesignElement obj,
java.lang.String name,
java.lang.String errCode,
ModelException cause,
java.lang.String[] args)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLocalizedMessage() |
java.lang.String |
getPropertyName()
Gets the name of the property that caused the problem.
|
getElement, getElementName, getMessage
getErrorCode, getLocalizedMessage, getPluginId, getSeverity, setSeverity
protected java.lang.String propertyName
public static final java.lang.String DESIGN_EXCEPTION_NAME_REQUIRED
public static final java.lang.String DESIGN_EXCEPTION_DUPLICATE_NAME
public static final java.lang.String DESIGN_EXCEPTION_INVALID_TYPE
public static final java.lang.String DESIGN_EXCEPTION_INVALID_DEFINITION
public static final java.lang.String DESIGN_EXCEPTION_MISSING_CHOICES
public static final java.lang.String DESIGN_EXCEPTION_INVALID_DISPLAY_ID
public static final java.lang.String DESIGN_EXCEPTION_NOT_FOUND
public static final java.lang.String DESIGN_EXCEPTION_USER_PROP_DISALLOWED
public static final java.lang.String DESIGN_EXCEPTION_CHOICE_VALUE_REQUIRED
public static final java.lang.String DESIGN_EXCEPTION_CHOICE_NAME_REQUIRED
public static final java.lang.String DESIGN_EXCEPTION_INVALID_CHOICE_VALUE
public static final java.lang.String DESIGN_EXCEPTION_INVALID_DEFAULT_VALUE
public UserPropertyException(org.eclipse.birt.report.model.core.DesignElement obj, java.lang.String name, java.lang.String errCode)
obj
- the element to be changed.name
- the name of the user property.errCode
- what went wrong.public UserPropertyException(org.eclipse.birt.report.model.core.DesignElement obj, java.lang.String name, java.lang.String errCode, org.eclipse.birt.report.model.metadata.MetaDataException cause)
obj
- the element to be changedname
- the name of the user propertyerrCode
- the error codecause
- the nested exceptionpublic UserPropertyException(org.eclipse.birt.report.model.core.DesignElement obj, java.lang.String name, java.lang.String errCode, ModelException cause, java.lang.String[] args)
obj
- the element to be changedname
- the name of the user propertyerrCode
- the error codecause
- the nested exceptionargs
- argument array used for error messagepublic java.lang.String getPropertyName()
public java.lang.String getLocalizedMessage()
getLocalizedMessage
in class SemanticException
Copyright © 2008 Actuate Corp. All rights reserved.