Add basic error handling for DependencyResolver.

Current spec status: 24 examples, 0 failures in 0.01878 seconds.