updated erro class