TopicsServiceException value object

Previous Topic

Next Topic

Book Contents

TopicsServiceException value object

class TopicsServiceException {

String message;

String detailedMessage;

TopicsServiceErrorCode errorCode;

String message;

}

Table 3–3 TopicsServiceException error codes.

Error Code

Description

TOPIC_ERROR_INTERNAL

Internal error.

TOPIC_ERROR_NO_SERVICE

Communication error with the topic server.

TOPIC_ERROR_TOPIC_NAME_REQUIRED

attachNewTopic method called with the topicInput parameter name field not set.

TOPIC_ERROR_ATTACHMENT_NAME_ REQUIRED

attachTopic, attachNewTopic, or attachAction method called with the attachmentInput parameter name field not set.

TOPIC_ERROR_PROJECT_NAME_REQUIRED

attachNewTopic method called with topicInput parameternewProject field set but projectName field not set.

TOPIC_ERROR_TOPIC_CLOSED

attachTopic method called with the topicContext parameter field id set to a closed topic.

TOPIC_ERROR_ACTION_CLOSED

attachAction method called with the actionContext parameter field id set to a closed action.

TOPIC_ERROR_TOPIC_DELETED

attachTopic method called with the topicContext parameter field id set to a deleted topic.

TOPIC_ERROR_ACTION_DELETED

attachAction method called with the actionContext parameter field id set to a deleted action.

TOPIC_ERROR_UNAVAILABLE_TOPIC

attachTopic method called with the topicContext parameter field id set to a topic that is not available.

TOPIC_ERROR_UNKNOWN_ACTION

attachAction method called with the actionContext parameter field id set to an action that is not available.

TOPIC_ERROR_UNKNOWN_TOPIC

Reserved for future use.

TOPIC_ERROR_ATTACHMENT_NAME_LENGTH

attachTopic, attachNewTopic, or attachAction method called with the attachment name length greater than the maximum length of 255 characters.

TOPIC_ERROR_TOPIC_DESCRIPTION_LENGTH

attachNewTopic method called with the topic description length greater than the maximum length of 2000 characters.

TOPIC_ERROR_ATTACHMENT_DESCRIPTION_LENGTH

attachTopic, attachNewTopic, or attachAction method called with the attachment description length greater than the maximum length of 2000 characters.

TOPIC_ERROR_TOPIC_NAME_LENGTH

attachNewTopic method called with the topic name length greater than the maximum length of 255 characters.

TOPIC_ERROR_PROJECT_LENGTH

attachNewTopic method called with a new project name length greater than the maximum length of 255 characters.

TOPIC_ERROR_URL_REQUIRED

attachTopic, attachNewTopic, or attachAction method called with the attachment type of URL and with the AttachmentInput urlAddress empty.

TOPIC_ERROR_URL_LENGTH

attachTopic, attachNewTopic, or attachAction method called with the attachment type of URL and the AttachmentInput urlAddress greater than the maximum length of 2000 characters.

TOPIC_ERROR_URL_INVALID

attachTopic, attachNewTopic, or attachAction method called with the attachment type of URL and an invalid format for the AttachmentInput urlAddress.

TOPIC_ERROR_NOTE_REQUIRED

attachTopic, attachNewTopic, or attachAction method called with the attachment type of Note with the AttachmentInput description empty.

TOPIC_ERROR_NOTE_LENGTH

attachTopic, attachNewTopic, or attachAction method called with the attachment type of Note and the AttachmentInput description greater than the maximum of 2000 characters.

TOPIC_ERROR_ATTACHMENT_IMAGE_TABLE_NOT_ALLOWED

attachTopic, attachNewTopic, or attachAction method called when TopicsUserInfo allowedAttachments does not contain IMAGE or TABLE.

TOPIC_ERROR_ATTACHMENT_URL_NOT_ALLOWED

attachTopic, attachNewTopic, or attachAction method called when TopicsUserInfo allowedAttachments does not contain URL.

TOPIC_ERROR_ATTACHMENT_FILE_NOT_ALLOWED

attachTopic, attachNewTopic, or attachAction method called when TopicsUserInfo allowedAttachments does not contain FILE.

TOPIC_ERROR_ATTACHMENT_NOTE_NOT_ALLOWED

attachTopic, attachNewTopic, or attachAction method called when TopicsUserInfo allowedAttachments does not contain NOTE.

enum TopicsServiceErrorCode {

TOPIC_ERROR_INTERNAL,

TOPIC_ERROR_NO_SERVICE,

TOPIC_ERROR_TOPIC_NAME_REQUIRED,

TOPIC_ERROR_ATTACHMENT_NAME_REQUIRED,

TOPIC_ERROR_PROJECT_NAME_REQUIRED,

TOPIC_ERROR_TOPIC_CLOSED,

TOPIC_ERROR_ACTION_CLOSED,

TOPIC_ERROR_TOPIC_DELETED,

TOPIC_ERROR_ACTION_DELETED,

TOPIC_ERROR_UNAVAILABLE_TOPIC,

TOPIC_ERROR_UNKNOWN_TOPIC

TOPIC_ERROR_ATTACHMENT_NAME_LENGTH,

TOPIC_ERROR_TOPIC_DESCRIPTION_LENGTH,

TOPIC_ERROR_ATTACHMENT_DESCRIPTION_LENGTH,

TOPIC_ERROR_TOPIC_NAME_LENGTH,

TOPIC_ERROR_PROJECT_LENGTH,

TOPIC_ERROR_URL_REQUIRED,

TOPIC_ERROR_URL_LENGTH,

TOPIC_ERROR_URL_INVALID,

TOPIC_ERROR_NOTE_REQUIRED,

TOPIC_ERROR_NOTE_LENGTH,

TOPIC_ERROR_ATTACHMENT_IMAGE_TABLE_NOT_ALLOWED,

TOPIC_ERROR_ATTACHMENT_URL_NOT_ALLOWED,

TOPIC_ERROR_ATTACHMENT_FILE_NOT_ALLOWED,

TOPIC_ERROR_ATTACHMENT_NOTE_NOT_ALLOWED

}

Send Feedback