Added API Exception and AbstractConsumer classes.