Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

exceptions.h File Reference

Exception classes. More...

#include <saml/base.h>
#include <xmltooling/exceptions.h>

Namespaces

namespace  opensaml
namespace  opensaml::saml2p
namespace  opensaml::saml2md

Functions

 DECL_XMLTOOLING_EXCEPTION (SecurityPolicyException,, opensaml, xmltooling::XMLToolingException, Exceptions in security policy processing)
 DECL_XMLTOOLING_EXCEPTION (BindingException,, opensaml, xmltooling::XMLToolingException, Exceptions in SAML binding processing)
 DECL_XMLTOOLING_EXCEPTION (ProfileException,, opensaml, xmltooling::ValidationException, Exceptions in SAML profile processing)
 DECL_XMLTOOLING_EXCEPTION (FatalProfileException,, opensaml, ProfileException, Fatal exceptions in SAML profile processing)
 DECL_XMLTOOLING_EXCEPTION (RetryableProfileException,, opensaml, ProfileException, Non-fatal exceptions in SAML profile processing)
void annotateException (xmltooling::XMLToolingException *e, const saml2md::EntityDescriptor *entity, const saml2p::Status *status=NULL, bool rethrow=true)
 Attaches metadata-derived information as exception properties and optionally rethrows the object.
void annotateException (xmltooling::XMLToolingException *e, const saml2md::RoleDescriptor *role, const saml2p::Status *status=NULL, bool rethrow=true)
 Attaches metadata-derived information as exception properties and optionally rethrows the object.


Detailed Description

Exception classes.


Function Documentation

void annotateException (  xmltooling::XMLToolingException *  e,
const saml2md::RoleDescriptor *  role,
const saml2p::Status *  status = NULL,
bool  rethrow = true
) 
 

Attaches metadata-derived information as exception properties and optionally rethrows the object.

The following named properties are attached, when possible:

entityID
The unique ID of the entity
errorURL
The error support URL of the role
contactName
A formatted support or technical contact name
contactEmail
A contact email address
statusCode
Top-level status code from Status object
statusCode2
Second-level status code from Status object

Parameters:
e pointer to exception object
entity pointer to role
status pointer to Status from message
rethrow true iff the exception should be rethrown

void annotateException (  xmltooling::XMLToolingException *  e,
const saml2md::EntityDescriptor *  entity,
const saml2p::Status *  status = NULL,
bool  rethrow = true
) 
 

Attaches metadata-derived information as exception properties and optionally rethrows the object.

The following named properties are attached, when possible:

entityID
The unique ID of the entity
errorURL
The error support URL of a random role
contactName
A formatted support or technical contact name
contactEmail
A contact email address
statusCode
Top-level status code from Status object
statusCode2
Second-level status code from Status object
statusMessage
StatusMessage from Status object

Parameters:
e pointer to exception object
entity pointer to entity
status pointer to Status from message
rethrow true iff the exception should be rethrown


Generated on Wed Jun 17 16:59:53 2009 for opensaml-2.2 by  doxygen 1.3.9.1