specs for errors class