if (code && !XMLString::equals(code,StatusCode::SUCCESS) && handleError(*status)) {
BindingException ex("SAML response contained an error.");
annotateException(&ex, policy.getIssuerMetadata(), status); // throws it
if (code && !XMLString::equals(code,StatusCode::SUCCESS) && handleError(*status)) {
BindingException ex("SAML response contained an error.");
annotateException(&ex, policy.getIssuerMetadata(), status); // throws it