error class moved in lib folder