Allow users of this lib to set their own exception type to be the one to watch for