Inheritance of AuthenticationFailureException in keeping with Java client