grnq / joid

Java OpenID = JOID OpenID providers and relying parties for OpenID 1.1 and 2.0
Other
4 stars 0 forks source link

Improve error handling when failing to discover server or delegate #22

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I propose an exception should be thrown in the case that neither the
delegate nor server could be found.  If this is not done, the failure later
is not ideal.

if( serverAndDelegate.getDelegate() == null &&
serverAndDelegate.getServer()== null){
   throw new IOException ("Failed to find server and delegate for " +
identityUrl);
            }

Original issue reported on code.google.com by tod...@us.ibm.com on 20 Aug 2008 at 6:59

GoogleCodeExporter commented 9 years ago
above code was from Discover.findIdServer

Original comment by tod...@us.ibm.com on 20 Aug 2008 at 7:00