Skip to Content.
Sympa Menu

shibboleth-dev - [Shib-Dev] IdP plugins / Exception and Error handling

Subject: Shibboleth Developers

List archive

[Shib-Dev] IdP plugins / Exception and Error handling


Chronological Thread 
  • From: Halm Reusser <>
  • To:
  • Subject: [Shib-Dev] IdP plugins / Exception and Error handling
  • Date: Wed, 17 Nov 2010 13:30:59 +0100

Hi,

what is the correct way to transfer exceptions/errors back to the IdP, which happened in the plugin.


void doPlugin(HttpServletRequest request, ...) {

try {
myBusiness();
} catch (MyException e) {
// Variant 1:
throw new Exception(e);
// Variant 2:
request.setAttribute(AbstractErrorHandler.ERROR_KEY,e);
// Variant 3:
???
}
}

Thanks,
-Halm



Archive powered by MHonArc 2.6.16.

Top of Page