public class ContentException extends SemanticException
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
containerProp
The property name within the container.
|
protected org.eclipse.birt.report.model.core.DesignElement |
content
The content in the container.
|
static java.lang.String |
DESIGN_EXCEPTION_CONTENT_ALREADY_INSERTED
Error code that indicates that the content can not be inserted twice for
it is already in the tree.
|
static java.lang.String |
DESIGN_EXCEPTION_CONTENT_NAME_REQUIRED
The content is not allowed to added into the container without name.
|
static java.lang.String |
DESIGN_EXCEPTION_CONTENT_NOT_ALLOWED_PASTED
The content element cannot be pasted into the container.
|
static java.lang.String |
DESIGN_EXCEPTION_CONTENT_NOT_FOUND
The content element does not appear within the container.
|
static java.lang.String |
DESIGN_EXCEPTION_DROP_FORBIDDEN
Deprecated.
since birt 2.2
|
static java.lang.String |
DESIGN_EXCEPTION_GROUPS_CHANGE_FORBIDDEN
The table/list has data binding reference to other elements.
|
static java.lang.String |
DESIGN_EXCEPTION_HAS_DESCENDENTS
The content in component slot has descendents.
|
static java.lang.String |
DESIGN_EXCEPTION_HAS_NO_CONTAINER
Tried to move or delete an element that has no container.
|
static java.lang.String |
DESIGN_EXCEPTION_INVALID_CONTEXT_CONTAINMENT
The content is not allowed to in one element's slot in any level.
|
static java.lang.String |
DESIGN_EXCEPTION_INVALID_POSITION
Error code that indicates that the given position is out of range and
invalid.
|
static java.lang.String |
DESIGN_EXCEPTION_INVALID_TEMPLATE_ELEMENT
The template element has no referred template definition, it is invalid.
|
static java.lang.String |
DESIGN_EXCEPTION_MOVE_FORBIDDEN
The content element cannot be deleted.
|
static java.lang.String |
DESIGN_EXCEPTION_NOT_CONTAINER
The purported container element is not, in fact, a container.
|
static java.lang.String |
DESIGN_EXCEPTION_RECURSIVE
Attempt to move an element inside itself, or inside one of its contents.
|
static java.lang.String |
DESIGN_EXCEPTION_SHARE_DIMENSION_NOT_EXIST
Error code that indicates that the shared dimension can not be inserted
to report design and library.
|
static java.lang.String |
DESIGN_EXCEPTION_SLOT_IS_FULL
Attempt to add a second item to a single-item slot.
|
static java.lang.String |
DESIGN_EXCEPTION_SLOT_NOT_FOUND
The operation referenced a slot that does not exist.
|
static java.lang.String |
DESIGN_EXCEPTION_STRUCTURE_CHANGE_FORBIDDEN
Can not change the structure of an element if it is a child element, or
it is within a child element, or it is a template parameter definition.
|
static java.lang.String |
DESIGN_EXCEPTION_TEMPLATE_TRANSFORM_FORBIDDEN
The template element has no referred template definition, it is invalid.
|
static java.lang.String |
DESIGN_EXCEPTION_WRONG_TYPE
The given content element is of the wrong type for the slot.
|
protected int |
slot
The slot within the container.
|
DESIGN_EXCEPTION__EXPORT_ELEMENT_FAIL, element
PLUGIN_ID
Constructor and Description |
---|
ContentException(org.eclipse.birt.report.model.core.DesignElement element,
int slotID,
org.eclipse.birt.report.model.core.DesignElement content,
java.lang.String errCode)
Constructs the exception with container element slot id, content element
and error code.
|
ContentException(org.eclipse.birt.report.model.core.DesignElement element,
int slotID,
org.eclipse.birt.report.model.core.DesignElement content,
java.lang.String errCode,
java.lang.String[] args)
Constructs the exception with container element slot id, content element
and error code.
|
ContentException(org.eclipse.birt.report.model.core.DesignElement element,
int slotID,
java.lang.String errCode)
Constructs the exception with container element, slot id, and error code.
|
ContentException(org.eclipse.birt.report.model.core.DesignElement element,
java.lang.String propName,
org.eclipse.birt.report.model.core.DesignElement content,
java.lang.String errCode)
Constructs the exception with container element slot id, content element
and error code.
|
ContentException(org.eclipse.birt.report.model.core.DesignElement element,
java.lang.String propName,
java.lang.String errCode)
Constructs the exception with container element, slot id, and error code.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLocalizedMessage() |
int |
getSlot()
Returns the slot ID.
|
getElement, getElementName, getMessage
getErrorCode, getLocalizedMessage, getPluginId, getSeverity, setSeverity
protected int slot
protected org.eclipse.birt.report.model.core.DesignElement content
protected java.lang.String containerProp
public static final java.lang.String DESIGN_EXCEPTION_STRUCTURE_CHANGE_FORBIDDEN
public static final java.lang.String DESIGN_EXCEPTION_SLOT_NOT_FOUND
public static final java.lang.String DESIGN_EXCEPTION_WRONG_TYPE
public static final java.lang.String DESIGN_EXCEPTION_DROP_FORBIDDEN
public static final java.lang.String DESIGN_EXCEPTION_CONTENT_NOT_FOUND
public static final java.lang.String DESIGN_EXCEPTION_NOT_CONTAINER
public static final java.lang.String DESIGN_EXCEPTION_SLOT_IS_FULL
public static final java.lang.String DESIGN_EXCEPTION_RECURSIVE
public static final java.lang.String DESIGN_EXCEPTION_HAS_NO_CONTAINER
public static final java.lang.String DESIGN_EXCEPTION_MOVE_FORBIDDEN
public static final java.lang.String DESIGN_EXCEPTION_HAS_DESCENDENTS
public static final java.lang.String DESIGN_EXCEPTION_INVALID_CONTEXT_CONTAINMENT
public static final java.lang.String DESIGN_EXCEPTION_CONTENT_NAME_REQUIRED
public static final java.lang.String DESIGN_EXCEPTION_INVALID_TEMPLATE_ELEMENT
public static final java.lang.String DESIGN_EXCEPTION_TEMPLATE_TRANSFORM_FORBIDDEN
public static final java.lang.String DESIGN_EXCEPTION_GROUPS_CHANGE_FORBIDDEN
public static final java.lang.String DESIGN_EXCEPTION_CONTENT_NOT_ALLOWED_PASTED
public static final java.lang.String DESIGN_EXCEPTION_CONTENT_ALREADY_INSERTED
public static final java.lang.String DESIGN_EXCEPTION_INVALID_POSITION
public static final java.lang.String DESIGN_EXCEPTION_SHARE_DIMENSION_NOT_EXIST
public ContentException(org.eclipse.birt.report.model.core.DesignElement element, int slotID, java.lang.String errCode)
element
- The container element.slotID
- The slot within the container.errCode
- What went wrong.public ContentException(org.eclipse.birt.report.model.core.DesignElement element, int slotID, org.eclipse.birt.report.model.core.DesignElement content, java.lang.String errCode)
element
- The container element.slotID
- The slot within the container.content
- The content in the container element.errCode
- What went wrong.public ContentException(org.eclipse.birt.report.model.core.DesignElement element, int slotID, org.eclipse.birt.report.model.core.DesignElement content, java.lang.String errCode, java.lang.String[] args)
element
- The container element.slotID
- The slot within the container.content
- The content in the container element.errCode
- What went wrong.public ContentException(org.eclipse.birt.report.model.core.DesignElement element, java.lang.String propName, java.lang.String errCode)
element
- The container element.propName
- The property name within the container.errCode
- What went wrong.public ContentException(org.eclipse.birt.report.model.core.DesignElement element, java.lang.String propName, org.eclipse.birt.report.model.core.DesignElement content, java.lang.String errCode)
element
- The container element.propName
- The property name within the container.content
- The content in the container element.errCode
- What went wrong.public int getSlot()
public java.lang.String getLocalizedMessage()
getLocalizedMessage
in class SemanticException
Copyright © 2008 Actuate Corp. All rights reserved.