Create Preprocessor class
Make Error class more abstract