001: /*
002: * Copyright 2002 Sun Microsystems, Inc. All
003: * rights reserved. Use of this product is subject
004: * to license terms. Federal Acquisitions:
005: * Commercial Software -- Government Users
006: * Subject to Standard License Terms and
007: * Conditions.
008: *
009: * Sun, Sun Microsystems, the Sun logo, and Sun ONE
010: * are trademarks or registered trademarks of Sun Microsystems,
011: * Inc. in the United States and other countries.
012: */
013:
014: package com.sun.portal.wsrp.consumer.common;
015:
016: import com.sun.portal.container.ErrorCode;
017:
018: /**
019: * ErrorCode that must have localized message strings
020: **/
021: public class WSRPConsumerErrorCode extends ErrorCode {
022:
023: //1
024: public static final WSRPConsumerErrorCode REMOTE_EXCEPTION = new WSRPConsumerErrorCode(
025: "REMOTE_EXCEPTION");
026:
027: //2
028: public static final WSRPConsumerErrorCode ACCESS_DENIED_FAULT = new WSRPConsumerErrorCode(
029: "ACCESS_DENIED_FAULT");
030:
031: //3
032: public static final WSRPConsumerErrorCode INVALID_SESSION_FAULT = new WSRPConsumerErrorCode(
033: "INVALID_SESSION_FAULT");
034:
035: //4
036: public static final WSRPConsumerErrorCode INVALID_COOKIE_FAULT = new WSRPConsumerErrorCode(
037: "INVALID_COOKIE_FAULT");
038:
039: //5
040: public static final WSRPConsumerErrorCode MISSING_PARAMETERS_FAULT = new WSRPConsumerErrorCode(
041: "MISSING_PARAMETERS_FAULT");
042:
043: //6
044: public static final WSRPConsumerErrorCode OPERATION_FAILED_FAULT = new WSRPConsumerErrorCode(
045: "OPERATION_FAILED_FAULT");
046:
047: //7
048: public static final WSRPConsumerErrorCode PORTLET_STATE_CHANGE_REQUIRED_FAULT = new WSRPConsumerErrorCode(
049: "PORTLET_STATE_CHANGE_REQUIRED_FAULT");
050:
051: //8
052: public static final WSRPConsumerErrorCode UNSUPPORTED_LOCALE_FAULT = new WSRPConsumerErrorCode(
053: "UNSUPPORTED_LOCALE_FAULT");
054:
055: //9
056: public static final WSRPConsumerErrorCode UNSUPPORTED_MIME_TYPE_FAULT = new WSRPConsumerErrorCode(
057: "UNSUPPORTED_MIME_TYPE_FAULT");
058:
059: //10
060: public static final WSRPConsumerErrorCode UNSUPPORTED_MODE_FAULT = new WSRPConsumerErrorCode(
061: "UNSUPPORTED_MODE_FAULT");
062:
063: //11
064: public static final WSRPConsumerErrorCode UNSUPPORTED_WINDOW_STATE_FAULT = new WSRPConsumerErrorCode(
065: "UNSUPPORTED_WINDOW_STATE_FAULT");
066:
067: //12
068: public static final WSRPConsumerErrorCode REWRITER_EXCEPTION = new WSRPConsumerErrorCode(
069: "REWRITER_EXCEPTION");
070:
071: //13
072: public static final WSRPConsumerErrorCode RUNTIME_NOT_IN_SECURE_MODE = new WSRPConsumerErrorCode(
073: "RUNTIME_NOT_IN_SECURE_MODE");
074:
075: //14
076: public static final WSRPConsumerErrorCode BINARY_CONTENT_NOT_SUPPORTED = new WSRPConsumerErrorCode(
077: "BINARY_CONTENT_NOT_SUPPORTED");
078:
079: //15
080: public static final WSRPConsumerErrorCode BAD_REDIRECT_URL = new WSRPConsumerErrorCode(
081: "BAD_REDIRECT_URL");
082:
083: //16
084: public static final WSRPConsumerErrorCode INVALID_REMOTE_CONTENT = new WSRPConsumerErrorCode(
085: "INVALID_REMOTE_CONTENT");
086:
087: //17
088: public static final WSRPConsumerErrorCode GENERIC_CONTENT_EXCEPTION = new WSRPConsumerErrorCode(
089: "GENERIC_CONTENT_EXCEPTION");
090:
091: //18
092: public static final WSRPConsumerErrorCode CONSUMER_DISABLED = new WSRPConsumerErrorCode(
093: "CONSUMER_DISABLED");
094:
095: //19
096: public static final WSRPConsumerErrorCode NO_PREVILEGE = new WSRPConsumerErrorCode(
097: "NO_PREVILEGE");
098:
099: //20
100: public static final WSRPConsumerErrorCode ANONYMOUS_NOTALLOWED_STATECHANGE = new WSRPConsumerErrorCode(
101: "ANONYMOUS_NOTALLOWED_STATECHANGE");
102:
103: //21
104: public static final WSRPConsumerErrorCode ERROR_IN_READING_UPLOAD = new WSRPConsumerErrorCode(
105: "ERROR_IN_READING_UPLOAD");
106:
107: //22
108: public static final WSRPConsumerErrorCode PRODUCER_STATUS_NOT_OK = new WSRPConsumerErrorCode(
109: "PRODUCER_STATUS_NOT_OK");
110:
111: //23
112: public static final WSRPConsumerErrorCode READING_UPLOAD_SIZE_LIMIT = new WSRPConsumerErrorCode(
113: "READING_UPLOAD_SIZE_LIMIT");
114:
115: public WSRPConsumerErrorCode(String errorCodeKey) {
116: super(errorCodeKey);
117: }
118:
119: }
|