Improving the exceptions by adding a new exception type for the storage engine.

I wanted to improve the exceptions so that I could better evaluate when various error types occurred.