Detect exception type

An example showing how to detect exception type using Tizen 2.3.