ErrorResponse Class Reference

#include <mw/messagingbus/errorresponse.h>

class ErrorResponse

MB errorresponse permits error response manipulation.

Member Enumeration Documentation

Enum ApplicationCondition

Describes MB error response application condition. NoApplicationCondition Default value. Not set. ClosedNode ConfiguratinRequired InvalidJid InvalidOptions InvalidPayload InvalidSubid ItemForbidden ItemRequired JidRequired MaxItemsExceeded MaxNodesExceeded NodeidRequired NotInRosterGroup NotSubscribed PayloadTooBig PayloadRequired PendingSubscription PresenceSubscriptionRequired SubidRequired TooManySubscriptions Unsupported See UnsupportedFeature for more info CertificateExpired ClientAuthenticationRequired ApplicationAuthenticationRequired

Enum Condition

Describes MB error response condition. NoCondition Default value. Not set. BadRequest Conflict FeatureNotImplemented Forbidden Gone InternalServerError ItemNotFound JidMalformed NotAcceptable NotAllowed PaymentRequired RecipientUnavailable Redirect RegistrationRequired RemoteServerNotFound RemoteServerTimeout ResourceConstraint ServiceUnavailable SubscriptionRequired UndefinedCondition UnexpectedRequest NotAuthorized Unknown Mb specific

Enum Type

Describes MB error response type. NoType Default value. No error defined. Cancel Do not retry (the error is unrecoverable) Continue Proceed (the condition was only a warning) Modify Retry after changing the data sent Auth Retry after providing credentials Wait Retry after waiting (the error is temporary)

EnumeratorValueDescription
NoType0
Cancel
Continue
Modify
Auth
Wait

Enum UnsupportedFeature

Describes MB error response unsupported feature. FeatureNone Default value. Not set. AccessAuthorize AccessOpen AccessPresence AccessRoster AccessWhitelist AutoCreate AutoSubscribe Collections ConfigNode CreateAndConfigure CreateNodes DeleteItems Deletenodes FilteredNotifications GetPending InstantNodes ItemIds LastPublished LeasedSubscription ManageSubscription MemberAffiliation MetaData ModifyAffiliations MultiCollection MultiSubscribe OutcastAffiliation PersistantItems PresenceNotifications PresenceSubscribe Publish PublishOptions PublishOnlyAffialiation PublisherAffiliation PurgeNodes RetractItems RetrieveAffialiations RetrieveDefault RetrieveItems RetrieveSubscriptions Subscribe SubscriptionOptions SubscriptionNotifications

Constructor & Destructor Documentation

ErrorResponse ( )

ErrorResponse()

Constructor Creates the ErrorResponseData object.

ErrorResponse ( const ErrorResponse & )

ErrorResponse(const ErrorResponse &other)

Operator =, protect against self-assignment.

~ErrorResponse ( )

~ErrorResponse()[virtual]

Destructor.

Member Function Documentation

applicationCondition ( )

ApplicationCondition applicationCondition()
Return Value
ErrorResponse::ApplicationCondition

condition ( )

Condition condition()

Returns a ErrorResponse::Condition value.

Return Value
ErrorResponse::Condition

operator= ( const ErrorResponse & )

ErrorResponse &operator=(const ErrorResponse &other)

Operator =, protect against self-assignment. Returns ErrorResponse type.

setApplicationCondition ( ApplicationCondition )

voidsetApplicationCondition(ApplicationConditionapplicationCondition)[protected]

Method used for setting MB error response application condition.

applicationCondition - ApplicationCondition type parameter ErrorResponse::ApplicationCondition

setCondition ( Condition )

voidsetCondition(Conditioncondition)[protected]

Method used for setting MB error response condition.

condition - Condition type parameter ErrorResponse::Condition

setType ( Type )

voidsetType(Typetype)[protected]

Method used for setting MB error response type.

type - Type type parameter ErrorResponse::Type

setUnSupportedFeature ( UnsupportedFeature )

voidsetUnSupportedFeature(UnsupportedFeatureunsupportedFeature)[protected]

Method used for setting MB error response unsupported feature.

unsupportedFeature - UnsupportedFeature type parameter ErrorResponse::UnsupportedFeature

type ( )

Type type()

Returns a ErrorResponse::Type value.

Return Value
ErrorResponse::Type

unsupportedFeature ( )

UnsupportedFeature unsupportedFeature()
Return Value
ErrorResponse::UnsupportedFeature