Add exception handling and dispatch examples.