001: /*
002: * Copyright 2000-2001,2004 The Apache Software Foundation.
003: *
004: * Licensed under the Apache License, Version 2.0 (the "License");
005: * you may not use this file except in compliance with the License.
006: * You may obtain a copy of the License at
007: *
008: * http://www.apache.org/licenses/LICENSE-2.0
009: *
010: * Unless required by applicable law or agreed to in writing, software
011: * distributed under the License is distributed on an "AS IS" BASIS,
012: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013: * See the License for the specific language governing permissions and
014: * limitations under the License.
015: */
016:
017: package org.apache.wsrp4j.exception;
018:
019: public interface ErrorCodes {
020:
021: // Persistence
022: public static final int STORE_OBJECT_ERROR = 1000;
023:
024: public static final int RESTORE_OBJECT_ERROR = 1001;
025:
026: public static final int DELETE_OBJECT_ERROR = 1002;
027:
028: public static final int UNMARSHAL_ERROR = 1003;
029:
030: public static final int MARSHAL_ERROR = 1004;
031:
032: // Faults defined by the WSRP Specification
033: public static final int ACCESS_DENIED = 1100;
034:
035: public static final int INCONSISTENT_PARAMETERS = 1101;
036:
037: public static final int INVALID_REGISTRATION = 1102;
038:
039: public static final int INVALID_COOKIE = 1103;
040:
041: public static final int INVALID_HANDLE = 1104;
042:
043: public static final int INVALID_SESSION = 1105;
044:
045: public static final int INVALID_USER_CATEGORY = 1106;
046:
047: public static final int MISSING_PARAMETERS = 1107;
048:
049: public static final int OPERATION_FAILED = 1108;
050:
051: public static final int PORTLET_STATE_CHANGE_REQUIRED = 1109;
052:
053: public static final int UNSUPPORTED_LOCALE = 1110;
054:
055: public static final int UNSUPPORTED_MIME_TYPE = 1111;
056:
057: public static final int UNSUPPORTED_MODE = 1112;
058:
059: public static final int UNSUPPORTED_WINDOW_STATE = 1113;
060:
061: // Error Codes Producer
062:
063: // Access to factories
064: public static final int PROVIDER_FACTORY_NOT_FOUND = 2001;
065:
066: public static final int PROPERTY_FILE_NOT_FOUND = 2002;
067:
068: public static final int CONSUMER_REGISTRY_FACTORY_NOT_FOUND = 2003;
069:
070: public static final int PERSISTENT_FACTORY_NOT_FOUND = 2004;
071:
072: // Description Handler
073: public static final int SAVE_SERVICEDESCRIPTION_FAILED = 3000;
074:
075: public static final int LOAD_SERVICEDESCRIPTION_FAILED = 3001;
076:
077: public static final int MISSING_DEFAULT_LOCALE = 3002;
078:
079: public static final int MISSING_DEFAULT_LANGUAGE = 3003;
080:
081: public static final int NO_PORTLETDESCRIPTIONS_FOUND = 3004;
082:
083: public static final int MISSING_PORTLET_DEFINITION = 3005;
084:
085: public static final int PORTLET_PORTLET_NOT_FOUND = 3006;
086:
087: // Portlet Pool
088: public static final int GET_PORTLET_FAILED = 3020;
089:
090: // Portlet Invoker
091: public final static int SERVICE_CLASS_NOT_FOUND = 3030;
092:
093: public final static int INSTANTIATION_OF_SERVICE_FAILED = 3031;
094:
095: // URL Composer
096: public static final int UNKNOWN_TOKEN_IN_TEMPLATE = 3040;
097:
098: public static final int SYNTAX_ERROR_IN_TEMPLATE = 3041;
099:
100: // Error Codes Consumer
101: public static final int CONSUMER_PROPERTY_FILE_NOT_FOUND = 6000;
102:
103: public static final int INSTANTIATION_OF_CONSUMER_ENV_FAILED = 6001;
104:
105: public static final int COULD_NOT_ADD_REQUEST_PARAM = 6002;
106:
107: public static final int MISSING_SERVCICE_DESC_PORT = 6003;
108:
109: public static final int INIT_OF_SERVICE_DESC_PORT_FAILED = 6004;
110:
111: public static final int INVALID_URL_OF_SERVICE_DESC_PORT = 6005;
112:
113: public static final int INIT_OF_REGISTRATION_PORT_FAILED = 6006;
114:
115: public static final int INVALID_URL_OF_REGISTRATION_PORT = 6007;
116:
117: public static final int INVALID_LINK_WITHIN_MARKUP = 6008;
118:
119: public static final int NO_VALID_URL_TYPE_PARAM_FOUND = 6009;
120:
121: public static final int INVALID_PORTLET_HANDLE = 6010;
122:
123: public static final int INVALID_SERVICE_DESCRIPTION = 6011;
124:
125: public static final int COULD_NOT_FOLLOW_REDIRECT = 6012;
126:
127: public static final int PRODUCER_DOES_NOT_EXIST = 6013;
128:
129: public static final int INIT_OF_PORTLET_MGMT_PORT_FAILED = 6014;
130:
131: public static final int INVALID_URL_OF_PORTLET_MGMT_PORT = 6015;
132:
133: public static final int MISSING_MARKUP_PORT = 6016;
134:
135: public static final int INIT_OF_MARKUP_PORT_FAILED = 6017;
136:
137: public static final int INVALID_URL_OF_MARKUP_PORT = 6018;
138:
139: public static final int PORTLET_DESC_NOT_FOUND = 6019;
140:
141: public static final int USER_SESSION_NOT_FOUND = 6020;
142:
143: public static final int GROUP_SESSION_NOT_FOUND = 6021;
144:
145: public static final int PORTLET_SESSION_NOT_FOUND = 6022;
146:
147: public static final int WINDWOS_SESSION_NOT_FOUND = 6023;
148: }
|