Finished implementation of error class.
Finished implementation of error class.