Class InvalidParentException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.eclipse.birt.core.exception.BirtException
-
- org.eclipse.birt.report.model.api.ModelException
-
- org.eclipse.birt.report.model.api.activity.SemanticException
-
- org.eclipse.birt.report.model.api.command.ExtendsException
-
- org.eclipse.birt.report.model.api.command.InvalidParentException
-
- All Implemented Interfaces:
java.io.Serializable
public class InvalidParentException extends ExtendsException
An error indicates invalid parent while setting the extends property of an element.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DESIGN_EXCEPTION_NO_PARENT
The element has no parent, it can not be localized.static java.lang.String
DESIGN_EXCEPTION_PARENT_NOT_FOUND
No element exists with the parent name.static java.lang.String
DESIGN_EXCEPTION_PARENT_NOT_INCLUDE
The library of the parent element is not included.static java.lang.String
DESIGN_EXCEPTION_UNNAMED_PARENT
The parent element has no name.-
Fields inherited from class org.eclipse.birt.report.model.api.command.ExtendsException
DESIGN_EXCEPTION_CANT_EXTEND, DESIGN_EXCEPTION_CIRCULAR, DESIGN_EXCEPTION_EXTENDS_FORBIDDEN, DESIGN_EXCEPTION_PARENT_NOT_IN_COMPONENT, DESIGN_EXCEPTION_SELF_EXTEND, DESIGN_EXCEPTION_WRONG_EXTENSION_TYPE, DESIGN_EXCEPTION_WRONG_TYPE, extendsName, parent
-
Fields inherited from class org.eclipse.birt.report.model.api.activity.SemanticException
DESIGN_EXCEPTION__EXPORT_ELEMENT_FAIL, element
-
Fields inherited from class org.eclipse.birt.report.model.api.ModelException
PLUGIN_ID
-
-
Constructor Summary
Constructors Constructor Description InvalidParentException(org.eclipse.birt.report.model.core.DesignElement obj, java.lang.String name, java.lang.String errCode)
Constructor.InvalidParentException(org.eclipse.birt.report.model.core.DesignElement obj, org.eclipse.birt.report.model.core.DesignElement parent, java.lang.String errCode)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getLocalizedMessage()
-
Methods inherited from class org.eclipse.birt.report.model.api.command.ExtendsException
getExtends
-
Methods inherited from class org.eclipse.birt.report.model.api.activity.SemanticException
getElement, getElementName, getMessage
-
Methods inherited from class org.eclipse.birt.core.exception.BirtException
getErrorCode, getLocalizedMessage, getPluginId, getSeverity, setSeverity
-
-
-
-
Field Detail
-
DESIGN_EXCEPTION_PARENT_NOT_FOUND
public static final java.lang.String DESIGN_EXCEPTION_PARENT_NOT_FOUND
No element exists with the parent name.- See Also:
- Constant Field Values
-
DESIGN_EXCEPTION_PARENT_NOT_INCLUDE
public static final java.lang.String DESIGN_EXCEPTION_PARENT_NOT_INCLUDE
The library of the parent element is not included.- See Also:
- Constant Field Values
-
DESIGN_EXCEPTION_NO_PARENT
public static final java.lang.String DESIGN_EXCEPTION_NO_PARENT
The element has no parent, it can not be localized.- See Also:
- Constant Field Values
-
DESIGN_EXCEPTION_UNNAMED_PARENT
public static final java.lang.String DESIGN_EXCEPTION_UNNAMED_PARENT
The parent element has no name.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
InvalidParentException
public InvalidParentException(org.eclipse.birt.report.model.core.DesignElement obj, java.lang.String name, java.lang.String errCode)
Constructor.- Parameters:
obj
- the element being changed.name
- the value being set for the extends property.errCode
- what went wrong.
-
InvalidParentException
public InvalidParentException(org.eclipse.birt.report.model.core.DesignElement obj, org.eclipse.birt.report.model.core.DesignElement parent, java.lang.String errCode)
Constructor.- Parameters:
obj
- the element being changed.parent
- the parent element.errCode
- what went wrong.
-
-
Method Detail
-
getLocalizedMessage
public java.lang.String getLocalizedMessage()
- Overrides:
getLocalizedMessage
in classExtendsException
-
-