Class ModelException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.eclipse.birt.core.exception.BirtException
org.eclipse.birt.report.model.api.ModelException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DesignFileException, MetaDataReaderException, SemanticException, StyleSheetException, StyleSheetParserException

public abstract class ModelException extends org.eclipse.birt.core.exception.BirtException
Implementation of BirtException in model project.
See Also:
  • Field Details

  • Constructor Details

    • ModelException

      public ModelException(String errCode)
      Constructs a new model exception with the error code.
      Parameters:
      errCode - used to retrieve a piece of externalized message displayed to end user
    • ModelException

      public ModelException(String errCode, String[] args, Throwable cause)
      Constructs a new model exception with the error code, string arguments used to format error messages and the nested exception.
      Parameters:
      errCode - used to retrieve a piece of externalized message displayed to end user
      args - string arguments used to format error messages
      cause - the nested exception
    • ModelException

      public ModelException(String pluginId, String errorCode, 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.
    • ModelException

      public ModelException(String pluginId, String errorCode, ResourceBundle bundle, 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
    • ModelException

      public ModelException(String pluginId, String errorCode, Object[] args, ResourceBundle bundle, 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
    • ModelException

      public ModelException(String pluginId, String errorCode, Object arg0, ResourceBundle bundle, 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
    • ModelException

      public ModelException(String pluginId, String errorCode, Object[] args, 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
    • ModelException

      public ModelException(String pluginId, String errorCode, Object arg0, 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
    • ModelException

      public ModelException(String pluginId, String errorCode, Object[] args, 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