create error folder and move error class to this