Add with_str_method to ParseError class as well