fixed syntax error in spec
update
custom error class