Improved exception classes and messages.