@tenderlove done. added a custom error class.