Poco::RemotingNG::SOAP

class SOAPFaultException

File Information

Library: RemotingNG/SOAP
Package: SOAP
Header: Poco/RemotingNG/SOAP/SOAPFaultException.h

Description

This exception class contains detailed information from a SOAPFault received from the server.

Inheritance

Direct Base Classes: Poco::RemotingNG::RemoteException

All Base Classes: Poco::Exception, Poco::LogicException, Poco::RemotingNG::RemoteException, Poco::RemotingNG::RemotingException, std::exception

Member Summary

Member Functions: className, clone, fault, faultCode, faultDetail, faultReason, name, namespaceURI, operator =, rethrow

Inherited Functions: className, clone, code, displayText, extendedMessage, message, name, nested, operator =, rethrow, what

Constructors

SOAPFaultException

SOAPFaultException(
    const SOAPFaultException & exc
);

Creates a new SOAPFaultException from another one.

SOAPFaultException

SOAPFaultException(
    const std::string & message,
    const XMLElement & fault
);

Creates a SOAPFaultException with the given message and code.

Destructor

~SOAPFaultException

~SOAPFaultException() noexcept;

Destroy the exception.

Member Functions

className virtual

const char * className() const noexcept;

Returns the name of the exception class.

clone

Poco::Exception * clone() const;

Creates an exact copy of the exception.

fault inline

const XMLElement & fault() const;

Returns the SOAP Fault element.

faultCode

std::string faultCode() const;

Returns the value of the "faultcode" (SOAP 1.1) or "Fault/Code/Value" (SOAP 1.2) element.

faultDetail

const XMLElement * faultDetail() const;

Returns a pointer to the "detail" (SOAP 1.1) or "Detail" (SOAP 1.2) element if it exists, otherwise nullptr.

faultReason

std::string faultReason() const;

Returns the value of the "faultstring" (SOAP 1.1) or "Fault/Reason/Text" (SOAP 1.2) element.

name virtual

const char * name() const noexcept;

Returns a static string describing the exception.

namespaceURI inline

const std::string & namespaceURI() const;

Returns the namespace URI of the SOAP Fault element. This can be used to distinguish between a SOAP 1.1 and 1.2 message.

operator =

SOAPFaultException & operator = (
    const SOAPFaultException & exc
);

Assignment operator.

rethrow virtual

void rethrow() const;

(Re)Throws the exception.

Securely control IoT edge devices from anywhere   Connect a Device