Removed useless dependency.
Simplified exception constructors.