rewrite exception message