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:
java.io.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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected org.eclipse.birt.core.exception.BirtException
birtException
protected static com.ibm.icu.util.UResourceBundle
dftRb
protected long
elementId
protected static java.lang.String
pluginId
protected static java.util.HashMap
resourceBundles
protected static java.lang.ThreadLocal
threadLocal
-
Constructor Summary
Constructors Constructor Description EngineException(java.lang.String errorCode)
EngineException(java.lang.String errorCode, java.lang.Object arg0)
EngineException(java.lang.String errorCode, java.lang.Object[] args)
EngineException(java.lang.String errorCode, java.lang.Object[] args, java.lang.Throwable cause)
EngineException(java.lang.String errorCode, java.lang.Object arg0, java.lang.Throwable cause)
EngineException(java.lang.String errorCode, java.lang.Throwable cause)
EngineException(org.eclipse.birt.core.exception.BirtException ex)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getElementID()
Get element id.java.lang.String
getErrorCode()
java.lang.String
getLocalizedMessage()
java.lang.String
getMessage()
java.lang.String
getPluginId()
protected static com.ibm.icu.util.UResourceBundle
getResourceBundle(com.ibm.icu.util.ULocale locale)
Get resource bundle.int
getSeverity()
void
setElementID(long id)
Set element id.void
setSeverity(int severity)
static void
setULocale(com.ibm.icu.util.ULocale locale)
Set locale.
-
-
-
Field Detail
-
dftRb
protected static com.ibm.icu.util.UResourceBundle dftRb
-
threadLocal
protected static java.lang.ThreadLocal threadLocal
-
pluginId
protected static final java.lang.String pluginId
- See Also:
- Constant Field Values
-
elementId
protected long elementId
-
birtException
protected org.eclipse.birt.core.exception.BirtException birtException
-
resourceBundles
protected static java.util.HashMap resourceBundles
-
-
Constructor Detail
-
EngineException
public EngineException(org.eclipse.birt.core.exception.BirtException ex)
-
EngineException
public EngineException(java.lang.String errorCode, java.lang.Object arg0)
- Parameters:
errorCode
- erroe code for the exceptionarg0
- message argument
-
EngineException
public EngineException(java.lang.String errorCode, java.lang.Object arg0, java.lang.Throwable cause)
- Parameters:
errorCode
-arg0
- message argumentcause
- the cause of the exception
-
EngineException
public EngineException(java.lang.String errorCode, java.lang.Object[] args)
- Parameters:
errorCode
- error codeargs
- message argument
-
EngineException
public EngineException(java.lang.String errorCode, java.lang.Object[] args, java.lang.Throwable cause)
- Parameters:
errorCode
- error codeargs
- message argumentscause
- the cause of the exception
-
EngineException
public EngineException(java.lang.String errorCode)
- Parameters:
errorCode
- the error code
-
EngineException
public EngineException(java.lang.String errorCode, java.lang.Throwable cause)
- Parameters:
errorCode
- the error code for the exceptioncause
- the cause of the exception
-
-
Method Detail
-
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
public java.lang.String getErrorCode()
- Overrides:
getErrorCode
in classorg.eclipse.birt.core.exception.BirtException
-
getLocalizedMessage
public java.lang.String getLocalizedMessage()
- Overrides:
getLocalizedMessage
in classorg.eclipse.birt.core.exception.BirtException
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessage
in classorg.eclipse.birt.core.exception.BirtException
-
getPluginId
public java.lang.String getPluginId()
- Overrides:
getPluginId
in classorg.eclipse.birt.core.exception.BirtException
-
getSeverity
public int getSeverity()
- Overrides:
getSeverity
in classorg.eclipse.birt.core.exception.BirtException
-
setSeverity
public void setSeverity(int severity)
- Overrides:
setSeverity
in classorg.eclipse.birt.core.exception.BirtException
-
-