Updated exceptions to allow exception chaining.