Corporation Server User Manual
OCMS Parlay X Presence Custom Error Codes
OCMS Parlay X Web Services 6-7
Interface: PresenceSupplier, Operation: getSubscribedAttributes
This operation returns only a single item of PresenceTypeAttribute.Activity. An
exception will be thrown if there is no existing subscription.
Code Example
PresenceAttributeType[] pat =
getSubscriberdAttributes("sip:watcher@test.example.com");
Interface: PresenceSupplier, Operation: blockSubscription
This operation places a watcher into the block list.
Code Example
blockSubscription(new URI("sip:block.this.watcher@test.example.com"));
OCMS Parlay X Presence Custom Error Codes
OCMS introduces two extensions to the Parlay X standard exceptions:
■ PresencePolicyException extends PolicyException, and
■ PresenceServiceException extends ServiceException
Table 6–4 and Table 6–5 describe the error codes and their associated error message.
Table 6–4 OCMS Parlay X Presence Custom Error Codes: PresencePolicyException
Error Code Error Message
OPOL0001 Watcher is on the block, polite-block or pending list.
Table 6–5 OCMS Parlay X Presence Custom Error Codes: PresenceServiceException
Error Code Error Message
PRES0001 Invalid result from XDMS server.
PRES0002 Invalid HTTP session data.
PRES0003 Invalid URI.
PRES0004 Peer unavailable.
PRES0005 Unknown host.
PRES0006 Service unavailable.
PRES0007 Internal error.
PRES0008 User unauthenticated.