01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: /*
18: * Created on Oct 22, 2004
19: *
20: * TODO To change the template for this generated file go to
21: * Window - Preferences - Java - Code Generation - Code and Comments
22: */
23: package org.apache.jetspeed.components.portletregistry;
24:
25: import org.apache.pluto.om.portlet.PortletDefinition;
26:
27: /**
28: * <p>
29: * FailedToStorePortletDefinitionException
30: * </p>
31: * <p>
32: *
33: * </p>
34: * @author <a href="mailto:weaver@apache.org">Scott T. Weaver</a>
35: * @version $Id: FailedToStorePortletDefinitionException.java 516881 2007-03-11 10:34:21Z ate $
36: *
37: */
38: public class FailedToStorePortletDefinitionException extends
39: RegistryException {
40:
41: /**
42: *
43: */
44: public FailedToStorePortletDefinitionException() {
45: super ();
46:
47: }
48:
49: /**
50: * @param message
51: */
52: public FailedToStorePortletDefinitionException(String message) {
53: super (message);
54:
55: }
56:
57: /**
58: * @param nested
59: */
60: public FailedToStorePortletDefinitionException(Throwable nested) {
61: super (nested);
62:
63: }
64:
65: /**
66: * @param msg
67: * @param nested
68: */
69: public FailedToStorePortletDefinitionException(String msg,
70: Throwable nested) {
71: super (msg, nested);
72:
73: }
74:
75: public FailedToStorePortletDefinitionException(
76: PortletDefinition portlet, Throwable nested) {
77: this ("Unable to store portlet definition " + portlet.getName()
78: + ". Reason: " + nested.toString(), nested);
79:
80: }
81:
82: public FailedToStorePortletDefinitionException(
83: PortletDefinition portlet, String reason) {
84: this ("Unable to store portlet definition " + portlet.getName()
85: + ". Resaon: " + reason);
86: }
87:
88: }
|