Class BirtException

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    CoreException, FrameworkException

    public class BirtException
    extends java.lang.Exception
    Define BIRT's Exception framework. Every BIRT exception has to include an error code, which is a string. Different BIRT modules use different prefix for error codes. For example,
  • DE uses DESIGN_EXCEPTION_
  • DtE uses DATA_EXCEPTION_
  • FPE uses GENERATION_EXCEPTION_ and VIEW_EXCEPTION_
  • UI uses UI_EXCEPTION_
  • Chart used CHART_EXCEPTION_
  • viewer uses VIERER_EXCEPTION_
  • as prefix. An error code is used for retrieving error message, which is externalizable, and can be seen by end users. The error code itself allows the identification of the subcomponent that generates the exception, avoiding the need to create exceltion subclasses such as BirtEngineException, BirtDtEException, etc. Note that the resource key (or error code), message arguments and resource bundle are immutable.
See Also:
Serialized Form