shibboleth-dev - [Shib-Dev] IdP plugins / Exception and Error handling
Subject: Shibboleth Developers
List archive
- 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
- [Shib-Dev] IdP plugins / Exception and Error handling, Halm Reusser, 11/17/2010
- Re: [Shib-Dev] IdP plugins / Exception and Error handling, Chad La Joie, 11/17/2010
Archive powered by MHonArc 2.6.16.