custom a error class