01: /*
02: * Copyright 2002 Sun Microsystems, Inc. All
03: * rights reserved. Use of this product is subject
04: * to license terms. Federal Acquisitions:
05: * Commercial Software -- Government Users
06: * Subject to Standard License Terms and
07: * Conditions.
08: *
09: * Sun, Sun Microsystems, the Sun logo, and Sun ONE
10: * are trademarks or registered trademarks of Sun Microsystems,
11: * Inc. in the United States and other countries.
12: */
13:
14: package com.sun.portal.portletcontainercommon;
15:
16: import com.sun.portal.container.ErrorCode;
17:
18: /**
19: * ErrorCode that must have localized message strings
20: **/
21: public class PortletContainerErrorCode extends ErrorCode {
22:
23: public static final PortletContainerErrorCode NO_ERROR = new PortletContainerErrorCode(
24: "NO_ERROR");
25:
26: public static final PortletContainerErrorCode READONLY_ERROR = new PortletContainerErrorCode(
27: "READONLY_ERROR");
28:
29: public static final PortletContainerErrorCode UNSUPPORTED_MODE = new PortletContainerErrorCode(
30: "UNSUPPORTED_MODE");
31:
32: public static final PortletContainerErrorCode UNSUPPORTED_STATE = new PortletContainerErrorCode(
33: "UNSUPPORTED_STATE");
34:
35: public static final PortletContainerErrorCode PORTLET_UNAVAILABLE = new PortletContainerErrorCode(
36: "PORTLET_UNAVAILABLE");
37:
38: public static final PortletContainerErrorCode SECURITY_VIOLATION = new PortletContainerErrorCode(
39: "SECURITY_VIOLATION");
40:
41: public static final PortletContainerErrorCode MISC_ERROR = new PortletContainerErrorCode(
42: "MISC_ERROR");
43:
44: public PortletContainerErrorCode(String errorCodeKey) {
45: super(errorCodeKey);
46: }
47:
48: }
|