# Uses of Class
org.eclipse.birt.core.exception.BirtException

Packages that use BirtException
Package
Description
org.eclipse.birt.core.data
Provide BIRT's data util component.
org.eclipse.birt.core.exception
Defines BIRT's Exception framework.
org.eclipse.birt.core.format
Provides a set of formatter classes.
org.eclipse.birt.core.framework
Defines the platform interfaces that allow BIRT to be run in Eclipse and server environments.
org.eclipse.birt.core.script
Provides Java Script support to BIRT.

## Uses of BirtException in org.eclipse.birt.core.data

Methods in org.eclipse.birt.core.data that throw BirtException
Modifier and Type
Method
Description
`static List`
ExpressionParserUtility.`compileColumnExpression(String expression)`
compile the expression
`static List`
ExpressionParserUtility.`compileColumnExpression(ExpressionParserUtility util, String expression, String indicator)`
compile the expression
`static Object`
DataTypeUtil.`convert(Object source, int toType)`
convert an object to given type Types supported: DataType.INTEGER_TYPE DataType.DECIMAL_TYPE DataType.BOOLEAN_TYPE DataType.DATE_TYPE DataType.DOUBLE_TYPE DataType.STRING_TYPE DataType.BLOB_TYPE DataType.SQL_DATE_TYPE DataType.SQL_TIME_TYPE
`static Object`
DataTypeUtil.`convert(Object source, Class toTypeClass)`
convert a object to given class Classes supported: Integer.class BigDecimal.class Boolean.class Time.class Date.class Double.class String.class Blob.class
`static List<IColumnBinding>`
ExpressionUtil.`extractColumnExpressions(String oldExpression)`
Extract all column expression info
`static List<IColumnBinding>`
ExpressionUtil.`extractColumnExpressions(String oldExpression, boolean mode)`
Deprecated.
use `extractColumnExpressions( String, String )` instead
`static List<IColumnBinding>`
ExpressionUtil.`extractColumnExpressions(String oldExpression, String indicator)`
Extract all column expression info
`static String`
DateFormatISO8601.`format(Date date)`
Parse a date/time string.
`static String`
DateFormatISO8601.`format(Date date, com.ibm.icu.util.TimeZone timeZone)`
Format a date/time object.
`static String`
ExpressionUtil.`generateConstantExpr(String input, int dataType)`
Generate a Javascript constant expression by user input string and target BIRT data type.
`String`
ExpressionHelper.`getColumnBindingName(String oldExpression)`
`static String`
ExpressionUtil.`getColumnBindingName(String oldExpression)`
Get the simplest column binding name.
`String`
ExpressionHelper.`getColumnName(String oldExpression)`
`static String`
ExpressionUtil.`getColumnName(String oldExpression)`
Get the simplest column binding name.
`static String`
DataTypeUtil.`getDateFormat(String source)`
Find the date format pattern string for a given datetime string without specified locale.
`static com.ibm.icu.text.DateFormat`
DataTypeUtil.`getDateFormat(String source, com.ibm.icu.util.ULocale locale, com.ibm.icu.util.TimeZone timeZone)`
Deprecated.
use getDateFormatObject instead
`static com.ibm.icu.text.SimpleDateFormat`
DateFormatISO8601.`getDateFormat(String source, com.ibm.icu.util.TimeZone timeZone)`
Deprecated.
use getSimpleDateFormat instead
`static com.ibm.icu.text.DateFormat`
DataTypeUtil.`getDateFormatObject(String source, com.ibm.icu.util.ULocale locale, com.ibm.icu.util.TimeZone timeZone)`
Retrieve date format object that matches the given date/time string
`static com.ibm.icu.text.SimpleDateFormat`
DateFormatISO8601.`getSimpleDateFormat(String source, com.ibm.icu.util.TimeZone timeZone)`
Get a date format object that can parse the given date/time string
`static boolean`
ExpressionParserUtility.`hasAggregation(String expression)`
`static boolean`
ExpressionParserUtility.`isDirectColumnRef(String expression, String indicator)`
`static Date`
DateFormatISO8601.`parse(String source, com.ibm.icu.util.TimeZone timeZone)`
Parse a date/time string.
`static int`
DataTypeUtil.`toApiDataType(int odaDataTypeCode)`
Converts an ODA data type code to its corresponding Data Engine API data type constant defined in DataType.
`static BigDecimal`
DataTypeUtil.`toBigDecimal(Object source)`
Boolean -> BigDecimal true -> 1 others -> 0 Date -> BigDecimal Date.getTime(); String -> BigDecimal new BigDecimal(String);
`static Blob`
DataTypeUtil.`toBlob(Object source)`
Converting Blob to/from other types is not currently supported
`static Boolean`
DataTypeUtil.`toBoolean(Object source)`
Number -> Boolean 0 -> false others -> true String -> Boolean "true" -> true (ignore case) "false" -> false (ignore case) other string will throw an exception Date -> Boolean throw exception
`static byte[]`
DataTypeUtil.`toBytes(Object source)`
`static Date`
DataTypeUtil.`toDate(Object source)`
Number -> Date new Date((long)Number) String -> Date toDate(String)
`static Date`
DataTypeUtil.`toDate(String source, com.ibm.icu.util.TimeZone timeZone)`
Convert a string to a Date instance according to the TimeZone value
`static Date`
DataTypeUtil.`toDate(String source, com.ibm.icu.util.ULocale locale)`
convert String with the specified locale to java.util.Date
`static Date`
DataTypeUtil.`toDate(String source, com.ibm.icu.util.ULocale locale, com.ibm.icu.util.TimeZone timeZone)`
Parses a date/time string
`static Date`
DataTypeUtil.`toDate(String source, Locale locale)`
A temp solution to the adoption of ICU4J to BIRT.
`static Date`
DataTypeUtil.`toDateWithCheck(String source, com.ibm.icu.util.ULocale locale)`
Convert string to date with check.
`static Date`
DataTypeUtil.`toDateWithCheck(String source, Locale locale)`
A temp solution to the adoption of ICU4J in BIRT.
`static Double`
DataTypeUtil.`toDouble(Object source)`
Boolean -> Double true -> 1 others -> 0 Date -> Double Date.getTime(); String -> Double Double.valueOf(String);
`static Integer`
DataTypeUtil.`toInteger(Object source)`
Boolean -> Integer true -> 1 others -> 0 Date -> Integer Date.getTime(); String -> Integer Integer.valueOf();
`static Integer`
DataTypeUtil.`toInteger(Object source, com.ibm.icu.util.ULocale locale)`
Boolean -> Integer true -> 1 others -> 0 Date -> Integer Date.getTime(); String -> Integer Integer.valueOf();
`static String`
DataTypeUtil.`toLocaleNeutralString(Object source)`
Convert an object to an locale neutral String value.
`static String`
DataTypeUtil.`toLocaleNeutralString(Object source, com.ibm.icu.util.TimeZone zone)`
Convert an object to an locale neutral String value.
`static Class`
DataTypeUtil.`toOdiTypeClass(int odaDataTypeCode)`
Converts an ODA data type code to the Java class of its corresponding Data Engine ODI data type.
`static Date`
DataTypeUtil.`toSqlDate(Object source)`
Date -> Time String -> Time
`static Time`
DataTypeUtil.`toSqlTime(Object source)`
Date -> Time String -> Time
`static String`
DataTypeUtil.`toString(Object source)`
Number -> String Number.toString() Boolean -> String Boolean.toString() Date -> String toString(Date)
`static String`
DataTypeUtil.`toString(Object source, com.ibm.icu.util.ULocale locale)`
Number -> String Number.toString() Boolean -> String Boolean.toString() Date -> String toString(Date,locale)
`static String`
DataTypeUtil.`toString(Object source, Locale locale)`
A temp solution to the adoption of ICU4J.
`static Timestamp`
DataTypeUtil.`toTimestamp(Object source)`

## Uses of BirtException in org.eclipse.birt.core.exception

Subclasses of BirtException in org.eclipse.birt.core.exception
Modifier and Type
Class
Description
`class`
`CoreException`
Exception thrown by birt.core classes

## Uses of BirtException in org.eclipse.birt.core.format

Methods in org.eclipse.birt.core.format that throw BirtException
Modifier and Type
Method
Description
`String`
AutoFormatter.`formatValue(Object value)`
`String`
IFormatter.DefaultFormatter.`formatValue(Object value)`
`String`
IFormatter.`formatValue(Object value)`
format the value object into a string.
`String`
LocaleNeutralFormatter.`formatValue(Object value)`

## Uses of BirtException in org.eclipse.birt.core.framework

Subclasses of BirtException in org.eclipse.birt.core.framework
Modifier and Type
Class
Description
`class`
`FrameworkException`
A checked exception representing a failure.
Methods in org.eclipse.birt.core.framework that throw BirtException
Modifier and Type
Method
Description
`static void`
Platform.`startup()`
`static void`
Platform.`startup(PlatformConfig config)`
startup the platform.

## Uses of BirtException in org.eclipse.birt.core.script

Methods in org.eclipse.birt.core.script that return BirtException
Modifier and Type
Method
Description
`static BirtException`
JavascriptEvalUtil.`wrapRhinoException(org.mozilla.javascript.RhinoException e, String scriptText, String source, int lineNo)`
Converts Rhino exception (a runtime exception) to BirtException
Methods in org.eclipse.birt.core.script that throw BirtException
Modifier and Type
Method
Description
`static final Number`
MathUtil.`abs(Object number)`
`static final Number`
MathUtil.`add(Object obj1, Object obj2)`
add operation.
`static final int`
MathUtil.`compare(Object number1, Object number2)`
`static final int`
MathUtil.`compareTo0(Object number)`
`ICompiledScript`
IScriptEngine.`compile(ScriptContext scriptContext, String fileName, int lineNumber, String script)`
Compiles the script for later execution.
`ICompiledScript`
ScriptContext.`compile(String language, String fileName, int lineNo, String script)`
`IScriptEngine`
IScriptEngineFactory.`createScriptEngine()`
Returns an instance of IScriptEngine associated with this factory.
`static final Number`
MathUtil.`divide(Object dividend, Object divisor)`
`Object`
IScriptEngine.`evaluate(ScriptContext scriptContext, ICompiledScript script)`
Evaluates a compiled script.
`Object`
ScriptContext.`evaluate(ICompiledScript script)`
`static Object`
JavascriptEvalUtil.`evaluateRawScript(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable scope, String scriptText, String source, int lineNo)`
This method will not convert the data of return value, so it might the Java data type or that of Java Script.
`static Object`
JavascriptEvalUtil.`evaluateScript(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable scope, String scriptText, String source, int lineNo)`
Evaluates Javascript expression and return its result, doing the necessary Javascript -> Java data type conversion if necessary
`IScriptEngine`
ScriptContext.`getScriptEngine(String scriptName)`
`static final Number`
MathUtil.`multiply(Object obj1, Object obj2)`
`static final Number`
MathUtil.`negate(Object number)`
`static final Object`
MathUtil.`safeDivide(Object dividend, Object divisor, Object ifZero)`
`static final Number`
MathUtil.`subtract(Object obj1, Object obj2)`
`static final Number`
MathUtil.`toNumber(Object obj1)`
add operation.