Implemented errors as classes as well as the resolve stack to help with diagnosis of failed dependency resolutions.