Class SemanticException

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String DESIGN_EXCEPTION__EXPORT_ELEMENT_FAIL
      The error code that indicates the element can not be exported to the library file, for it self or any of its contents has duplicate name with that in the library file and the element in the library can not be dropped.
      protected org.eclipse.birt.report.model.core.DesignElement element
      The element with semantic error.
      • Fields inherited from class org.eclipse.birt.core.exception.BirtException

        CANCEL, ERROR, INFO, oaMessageArguments, OK, pluginId, rb, severity, sResourceKey, WARNING
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected SemanticException​(java.lang.String errCode)
      Constructor.
        SemanticException​(java.lang.String pluginId, java.lang.String errorCode, java.lang.Object[] args, java.lang.Throwable cause)
      Constructs a new model exception.
        SemanticException​(java.lang.String pluginId, java.lang.String errorCode, java.lang.Object[] args, java.util.ResourceBundle bundle)
      Constructs a new model exception.
        SemanticException​(java.lang.String pluginId, java.lang.String errorCode, java.lang.Object[] args, java.util.ResourceBundle bundle, java.lang.Throwable cause)
      Constructs a new model exception.
        SemanticException​(java.lang.String pluginId, java.lang.String errorCode, java.lang.Object arg0, java.util.ResourceBundle bundle)
      Constructs a new model exception.
        SemanticException​(java.lang.String pluginId, java.lang.String errorCode, java.lang.Object arg0, java.util.ResourceBundle bundle, java.lang.Throwable cause)
      Constructs a new model exception.
        SemanticException​(java.lang.String pluginId, java.lang.String errorCode, java.util.ResourceBundle bundle)
      Constructs a new model exception with no cause object.
        SemanticException​(java.lang.String pluginId, java.lang.String errorCode, java.util.ResourceBundle bundle, java.lang.Throwable cause)
      Constructs a new model exception.
        SemanticException​(org.eclipse.birt.report.model.core.DesignElement element, java.lang.String errCode)
      Constructor.
        SemanticException​(org.eclipse.birt.report.model.core.DesignElement element, java.lang.String[] values, java.lang.String errCode)
      Constructor.
        SemanticException​(org.eclipse.birt.report.model.core.DesignElement element, java.lang.String[] values, java.lang.String errCode, java.lang.Throwable cause)
      Constructor.
        SemanticException​(org.eclipse.birt.report.model.core.DesignElement element, java.lang.String errCode, java.lang.Throwable cause)
      Constructor.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.eclipse.birt.report.model.core.DesignElement getElement()
      Returns the element having semantic error.
      protected static java.lang.String getElementName​(org.eclipse.birt.report.model.core.DesignElement element)
      Returns the element name if it exists.
      java.lang.String getLocalizedMessage()  
      java.lang.String getMessage()  
      • Methods inherited from class org.eclipse.birt.core.exception.BirtException

        getErrorCode, getLocalizedMessage, getPluginId, getSeverity, setSeverity
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • DESIGN_EXCEPTION__EXPORT_ELEMENT_FAIL

        public static final java.lang.String DESIGN_EXCEPTION__EXPORT_ELEMENT_FAIL
        The error code that indicates the element can not be exported to the library file, for it self or any of its contents has duplicate name with that in the library file and the element in the library can not be dropped.
        See Also:
        Constant Field Values
      • element

        protected org.eclipse.birt.report.model.core.DesignElement element
        The element with semantic error.
    • Constructor Detail

      • SemanticException

        protected SemanticException​(java.lang.String errCode)
        Constructor.
        Parameters:
        errCode - the error code
      • SemanticException

        public SemanticException​(org.eclipse.birt.report.model.core.DesignElement element,
                                 java.lang.String errCode)
        Constructor.
        Parameters:
        element - the element which has errors
        errCode - the error code
      • SemanticException

        public SemanticException​(org.eclipse.birt.report.model.core.DesignElement element,
                                 java.lang.String errCode,
                                 java.lang.Throwable cause)
        Constructor.
        Parameters:
        element - the element which has errors
        errCode - the error code
        cause - the nested exception
      • SemanticException

        public SemanticException​(org.eclipse.birt.report.model.core.DesignElement element,
                                 java.lang.String[] values,
                                 java.lang.String errCode)
        Constructor.
        Parameters:
        element - the element which has errors
        values - value array used for error message
        errCode - the error code
      • SemanticException

        public SemanticException​(org.eclipse.birt.report.model.core.DesignElement element,
                                 java.lang.String[] values,
                                 java.lang.String errCode,
                                 java.lang.Throwable cause)
        Constructor.
        Parameters:
        element - the element which has errors
        values - value array used for error message
        errCode - the error code
        cause - the nested exception
      • SemanticException

        public SemanticException​(java.lang.String pluginId,
                                 java.lang.String errorCode,
                                 java.util.ResourceBundle bundle)
        Constructs a new model exception with no cause object.
        Parameters:
        pluginId - Returns the unique identifier of the plug-in associated with this exception
        errorCode - used to retrieve a piece of externalized message displayed to end user.
        bundle - the resourceBundle used to translate the message.
      • SemanticException

        public SemanticException​(java.lang.String pluginId,
                                 java.lang.String errorCode,
                                 java.util.ResourceBundle bundle,
                                 java.lang.Throwable cause)
        Constructs a new model exception.
        Parameters:
        pluginId - Returns the unique identifier of the plug-in associated with this exception
        errorCode - used to retrieve a piece of externalized message displayed to end user.
        bundle - the resourceBundle used to translate the message.
        cause - the nested exception
      • SemanticException

        public SemanticException​(java.lang.String pluginId,
                                 java.lang.String errorCode,
                                 java.lang.Object[] args,
                                 java.util.ResourceBundle bundle,
                                 java.lang.Throwable cause)
        Constructs a new model exception.
        Parameters:
        pluginId - Returns the unique identifier of the plug-in associated with this exception
        errorCode - used to retrieve a piece of externalized message displayed to end user.
        bundle - the resourceBundle used to translate the message.
        args - string arguments used to format error messages
        cause - the nested exception
      • SemanticException

        public SemanticException​(java.lang.String pluginId,
                                 java.lang.String errorCode,
                                 java.lang.Object arg0,
                                 java.util.ResourceBundle bundle,
                                 java.lang.Throwable cause)
        Constructs a new model exception.
        Parameters:
        pluginId - Returns the unique identifier of the plug-in associated with this exception
        errorCode - used to retrieve a piece of externalized message displayed to end user.
        bundle - the resourceBundle used to translate the message.
        cause - the nested exception
        arg0 - first argument used to format error messages
      • SemanticException

        public SemanticException​(java.lang.String pluginId,
                                 java.lang.String errorCode,
                                 java.lang.Object[] args,
                                 java.util.ResourceBundle bundle)
        Constructs a new model exception.
        Parameters:
        pluginId - Returns the unique identifier of the plug-in associated with this exception
        errorCode - used to retrieve a piece of externalized message displayed to end user.
        bundle - the resourceBundle used to translate the message.
        args - string arguments used to format error messages
      • SemanticException

        public SemanticException​(java.lang.String pluginId,
                                 java.lang.String errorCode,
                                 java.lang.Object arg0,
                                 java.util.ResourceBundle bundle)
        Constructs a new model exception.
        Parameters:
        pluginId - Returns the unique identifier of the plug-in associated with this exception
        errorCode - used to retrieve a piece of externalized message displayed to end user.
        bundle - the resourceBundle used to translate the message.
        arg0 - first argument used to format error messages
      • SemanticException

        public SemanticException​(java.lang.String pluginId,
                                 java.lang.String errorCode,
                                 java.lang.Object[] args,
                                 java.lang.Throwable cause)
        Constructs a new model exception.
        Parameters:
        pluginId - Returns the unique identifier of the plug-in associated with this exception
        errorCode - used to retrieve a piece of externalized message displayed to end user.
        cause - the nested exception
        args - string arguments used to format error messages
    • Method Detail

      • getElement

        public org.eclipse.birt.report.model.core.DesignElement getElement()
        Returns the element having semantic error.
        Returns:
        the element having semantic error
      • getElementName

        protected static java.lang.String getElementName​(org.eclipse.birt.report.model.core.DesignElement element)
        Returns the element name if it exists.
        Parameters:
        element - the design element
        Returns:
        the element name if it exists. Otherwise, return empty string.
      • getMessage

        public java.lang.String getMessage()
        Overrides:
        getMessage in class org.eclipse.birt.core.exception.BirtException
      • getLocalizedMessage

        public java.lang.String getLocalizedMessage()
        Overrides:
        getLocalizedMessage in class org.eclipse.birt.core.exception.BirtException