Class ExtendedElementException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.eclipse.birt.core.exception.BirtException
All Implemented Interfaces:
Serializable

public class ExtendedElementException extends SemanticException
Base class for all peer-provided exceptions. The easiest implementation is to simply wrap the specialized peer implementation inside one of these exceptions.
See Also:
  • Field Details

    • SUB_EDITOR

      public static final String SUB_EDITOR
      The reference to the editor.For example graphic editor, xml source editor, script editor and so on.
      See Also:
    • LINE_NUMBER

      public static final String LINE_NUMBER
      Number of line.
      See Also:
    • LOCALIZED_MESSAGE

      public static final String LOCALIZED_MESSAGE
      Localized message.
      See Also:
    • properties

      protected HashMap<String,Object> properties
      Hash map for the extended element exception properties
  • Constructor Details

    • ExtendedElementException

      public ExtendedElementException(org.eclipse.birt.report.model.core.DesignElement element, String pluginId, String errorCode, ResourceBundle bundle)
      Constructs a new model exception with no cause object.
      Parameters:
      element - The element with semantic error.
      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.
    • ExtendedElementException

      public ExtendedElementException(org.eclipse.birt.report.model.core.DesignElement element, String pluginId, String errorCode, ResourceBundle bundle, Throwable cause)
      Constructs a new model exception.
      Parameters:
      element - The element with semantic error.
      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
    • ExtendedElementException

      public ExtendedElementException(org.eclipse.birt.report.model.core.DesignElement element, String pluginId, String errorCode, Object[] args, ResourceBundle bundle, Throwable cause)
      Constructs a new model exception.
      Parameters:
      element - The element with semantic error.
      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
    • ExtendedElementException

      public ExtendedElementException(org.eclipse.birt.report.model.core.DesignElement element, String pluginId, String errorCode, Object arg0, ResourceBundle bundle, Throwable cause)
      Constructs a new model exception.
      Parameters:
      element - The element with semantic error.
      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
    • ExtendedElementException

      public ExtendedElementException(org.eclipse.birt.report.model.core.DesignElement element, String pluginId, String errorCode, Object[] args, ResourceBundle bundle)
      Constructs a new model exception.
      Parameters:
      element - The element with semantic error.
      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
    • ExtendedElementException

      public ExtendedElementException(org.eclipse.birt.report.model.core.DesignElement element, String pluginId, String errorCode, Object arg0, ResourceBundle bundle)
      Constructs a new model exception.
      Parameters:
      element - The element with semantic error.
      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
    • ExtendedElementException

      public ExtendedElementException(org.eclipse.birt.report.model.core.DesignElement element, String pluginId, String errorCode, Object[] args, Throwable cause)
      Constructs a new model exception.
      Parameters:
      element - The element with semantic error.
      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 Details

    • setProperty

      public void setProperty(String propName, Object value)
      Sets extended element exception properties.
      Parameters:
      propName - property name of extended element exception.
      value - value of extended element exception.
    • getProperty

      public Object getProperty(String propName)
      Returns extended element exception properties.
      Parameters:
      propName - property name of extended element exception.
      Returns:
      value of extended element exception.
    • getLocalizedMessage

      public String getLocalizedMessage()
      Returns localized message.
      Overrides:
      getLocalizedMessage in class SemanticException
      Returns:
      localized message.