Introduce example on how to handle component errors.

Change-Id: Idb102b8bc4a56365a4718d15856ecd96a40f952e
Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>