Add custom exceptions and stylistic tweaks

Creates custom exception class for Cardinal exceptions to extend, as
well as converting over Cardinal-sepcific exceptions in the plugins
module over.