View Javadoc
1   /*
2    * Copyright 2005 Filipe Tavares
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *     http://www.apache.org/licenses/LICENSE-2.0
9    *
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   */
16  package org.devyant.decorutils.exceptions;
17  
18  /***
19   * Thrown when an exception is caught while trying to apply a decorator.
20   * 
21   * @author Filipe Tavares
22   * @version $Revision: 1.0$ ($Author: ftavares$)
23   * @since 8/Mar/2005 22:56:23
24   */
25  public class DecoratorException extends Exception {
26      /***
27       * Creates a new <code>DecoratorException</code> instance.
28       * @param root Root excetpion
29       */
30      public DecoratorException(final Throwable root) {
31          super("An error occurred while decorating an object.", root);
32      }
33  }