A small example of exception throwing using PubSubJS