Register HashException and its error info