Class EngineException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.eclipse.birt.core.exception.BirtException
org.eclipse.birt.report.engine.api.EngineException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
UnsupportedFormatException
public class EngineException
extends org.eclipse.birt.core.exception.BirtException
Define an engine exception that clients of the engine need to handle.
EngineException builds on top of BireException and provides resource bundle
support
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.eclipse.birt.core.exception.BirtExceptionprotected static com.ibm.icu.util.UResourceBundleprotected longprotected static final Stringprotected static HashMapprotected static ThreadLocalFields inherited from class org.eclipse.birt.core.exception.BirtException
CANCEL, ERROR, INFO, oaMessageArguments, OK, rb, severity, sResourceKey, WARNING -
Constructor Summary
ConstructorsConstructorDescriptionEngineException(String errorCode) EngineException(String errorCode, Object arg0) EngineException(String errorCode, Object[] args) EngineException(String errorCode, Object[] args, Throwable cause) EngineException(String errorCode, Object arg0, Throwable cause) EngineException(String errorCode, Throwable cause) EngineException(org.eclipse.birt.core.exception.BirtException ex) -
Method Summary
Modifier and TypeMethodDescriptionlongGet element id.protected static com.ibm.icu.util.UResourceBundlegetResourceBundle(com.ibm.icu.util.ULocale locale) Get resource bundle.intvoidsetElementID(long id) Set element id.voidsetSeverity(int severity) static voidsetULocale(com.ibm.icu.util.ULocale locale) Set locale.Methods inherited from class org.eclipse.birt.core.exception.BirtException
getLocalizedMessageMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
dftRb
protected static com.ibm.icu.util.UResourceBundle dftRb -
threadLocal
-
pluginId
- See Also:
-
elementId
protected long elementId -
birtException
protected org.eclipse.birt.core.exception.BirtException birtException -
resourceBundles
-
-
Constructor Details
-
EngineException
public EngineException(org.eclipse.birt.core.exception.BirtException ex) -
EngineException
- Parameters:
errorCode- erroe code for the exceptionarg0- message argument
-
EngineException
- Parameters:
errorCode-arg0- message argumentcause- the cause of the exception
-
EngineException
- Parameters:
errorCode- error codeargs- message argument
-
EngineException
- Parameters:
errorCode- error codeargs- message argumentscause- the cause of the exception
-
EngineException
- Parameters:
errorCode- the error code
-
EngineException
- Parameters:
errorCode- the error code for the exceptioncause- the cause of the exception
-
-
Method Details
-
setULocale
public static void setULocale(com.ibm.icu.util.ULocale locale) Set locale.- Parameters:
locale-
-
getResourceBundle
protected static com.ibm.icu.util.UResourceBundle getResourceBundle(com.ibm.icu.util.ULocale locale) Get resource bundle.- Parameters:
locale-- Returns:
- resource bundle
-
setElementID
public void setElementID(long id) Set element id.- Parameters:
id-
-
getElementID
public long getElementID()Get element id.- Returns:
- element id
-
getErrorCode
- Overrides:
getErrorCodein classorg.eclipse.birt.core.exception.BirtException
-
getLocalizedMessage
- Overrides:
getLocalizedMessagein classorg.eclipse.birt.core.exception.BirtException
-
getMessage
- Overrides:
getMessagein classorg.eclipse.birt.core.exception.BirtException
-
getPluginId
- Overrides:
getPluginIdin classorg.eclipse.birt.core.exception.BirtException
-
getSeverity
public int getSeverity()- Overrides:
getSeverityin classorg.eclipse.birt.core.exception.BirtException
-
setSeverity
public void setSeverity(int severity) - Overrides:
setSeverityin classorg.eclipse.birt.core.exception.BirtException
-