01: /**
02: * Copyright 2006 Webmedia Group Ltd.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: **/package org.araneaframework.core;
16:
17: /**
18: * Thrown to indicate that a component does not exist in the set of (child)components.
19: * The exception is thrown when:
20: * <ul>
21: * <li>Routing an event to a specific child component that does not exist.</li>
22: * <li>Calling <code>disableComponent(Object key)</code> when the object does not exist.</li>
23: * <li>Calling <code>enableComponent(Object key)</code> when the object does not exist in the set
24: * of disabled components.</li>
25: * <li>Calling <code>removeComponent(Object key)</code> when the object does not exist in the
26: * set of child components.<li>
27: * </ul>
28: * <p>
29: * Services and Widgets have corresponding exceptions,
30: * {@link org.araneaframework.core.NoSuchServiceException} and
31: * {@link org.araneaframework.core.NoSuchWidgetException} respectively.
32: * </p>
33: * @author "Toomas Römer" <toomas@webmedia.ee>
34: */
35: public class NoSuchComponentException extends AraneaRuntimeException {
36:
37: public NoSuchComponentException(Object key) {
38: super ("No such component '" + key + "'");
39: }
40: }
|