Add exception example

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>