Detect exception type
An example showing how to detect exception type using Tizen 2.3.
try {
throw new CustomException();
} catch (e) {
if (e instanceof CustomException) {
} else if (e instanceof AnotherException) {
} else {
}
}