#include <mw/messagingbus/errorresponse.h>
class ErrorResponse |
MB errorresponse permits error response manipulation.
Public Member Enumerations | |
---|---|
enum | ApplicationCondition { NoApplicationCondition, ClosedNode, ConfiguratinRequired, InvalidJid, ..., ApplicationAuthenticationRequired } |
enum | Condition { NoCondition, BadRequest, Conflict, FeatureNotImplemented, ..., Unknown } |
enum | Type { NoType, Cancel, Continue, Modify, ..., Wait } |
enum | UnsupportedFeature { FeatureNone, AccessAuthorize, AccessOpen, AccessPresence, ..., SubscriptionNotifications } |
Public Member Functions | |
---|---|
ErrorResponse() | |
ErrorResponse(const ErrorResponse &) | |
virtual | ~ErrorResponse() |
ApplicationCondition | applicationCondition() |
Condition | condition() |
ErrorResponse & | operator=(const ErrorResponse &) |
Type | type() |
UnsupportedFeature | unsupportedFeature() |
Protected Member Functions | |
---|---|
void | setApplicationCondition(ApplicationCondition) |
void | setCondition(Condition) |
void | setType(Type) |
void | setUnSupportedFeature(UnsupportedFeature) |
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
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
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)
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
ApplicationCondition | applicationCondition | ( | ) |
Returns a ErrorResponse::ApplicationCondition value.
Condition | condition | ( | ) |
Returns a ErrorResponse::Condition value.
ErrorResponse & | operator= | ( | const ErrorResponse & | other | ) |
Operator =, protect against self-assignment. Returns ErrorResponse type.
void | setApplicationCondition | ( | ApplicationCondition | applicationCondition | ) | [protected] |
Method used for setting MB error response application condition.
applicationCondition - ApplicationCondition type parameter ErrorResponse::ApplicationCondition
void | setCondition | ( | Condition | condition | ) | [protected] |
Method used for setting MB error response condition.
condition - Condition type parameter ErrorResponse::Condition
void | setType | ( | Type | type | ) | [protected] |
Method used for setting MB error response type.
type - Type type parameter ErrorResponse::Type
void | setUnSupportedFeature | ( | UnsupportedFeature | unsupportedFeature | ) | [protected] |
Method used for setting MB error response unsupported feature.
unsupportedFeature - UnsupportedFeature type parameter ErrorResponse::UnsupportedFeature
UnsupportedFeature | unsupportedFeature | ( | ) |
Returns a ErrorResponse::UnsupportedFeature value.