expose the exception type in the public api