Add style sheet to package.
[shibboleth/sp.git] / shibsp / exceptions.h
index 5cd9625..a12e720 100644 (file)
 #define __shibsp_exceptions_h__
 
 #include <shibsp/base.h>
-#include <saml/exceptions.h>
+#ifndef SHIBSP_LITE
+# include <saml/exceptions.h>
+#else
+# include <xmltooling/exceptions.h>
+#endif
 
 namespace shibsp {
     
@@ -37,4 +41,18 @@ namespace shibsp {
 
 };
 
+#ifdef SHIBSP_LITE
+namespace opensaml {
+    DECL_XMLTOOLING_EXCEPTION(BindingException,SHIBSP_EXCEPTIONAPI(SHIBSP_API),opensaml,xmltooling::XMLToolingException,Exceptions in SAML binding processing);
+    DECL_XMLTOOLING_EXCEPTION(SecurityPolicyException,SHIBSP_EXCEPTIONAPI(SHIBSP_API),opensaml,xmltooling::XMLToolingException,Exceptions in security policy processing);
+    DECL_XMLTOOLING_EXCEPTION(ProfileException,SHIBSP_EXCEPTIONAPI(SHIBSP_API),opensaml,xmltooling::ValidationException,Exceptions in SAML profile processing);
+    DECL_XMLTOOLING_EXCEPTION(FatalProfileException,SHIBSP_EXCEPTIONAPI(SHIBSP_API),opensaml,ProfileException,Fatal exceptions in SAML profile processing);
+    DECL_XMLTOOLING_EXCEPTION(RetryableProfileException,SHIBSP_EXCEPTIONAPI(SHIBSP_API),opensaml,ProfileException,Non-fatal exceptions in SAML profile processing);
+
+    namespace saml2md {
+        DECL_XMLTOOLING_EXCEPTION(MetadataException,SHIBSP_EXCEPTIONAPI(SHIBSP_API),opensaml::saml2md,xmltooling::XMLToolingException,Exceptions related to metadata use);
+    };
+};
+#endif
+
 #endif /* __shibsp_exceptions_h__ */