Class WrongTypeException

  • All Implemented Interfaces:
    java.io.Serializable

    public class WrongTypeException
    extends ExtendsException
    An error indicates wrong type while setting the extends property of an element.
    See Also:
    Serialized Form
    • Field Detail

      • DESIGN_EXCEPTION_WRONG_TYPE

        public static final java.lang.String DESIGN_EXCEPTION_WRONG_TYPE
        The parent element does not have the same type as the target element.
        See Also:
        Constant Field Values
      • DESIGN_EXCEPTION_WRONG_EXTENSION_TYPE

        public static final java.lang.String DESIGN_EXCEPTION_WRONG_EXTENSION_TYPE
        The parent element does not have the same type of extension as the target element. Both the parent and the target element are ExtendedItem.
        See Also:
        Constant Field Values
    • Constructor Detail

      • WrongTypeException

        public WrongTypeException​(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.
      • WrongTypeException

        public WrongTypeException​(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.