error classes

made a start to the error class file