View Javadoc

1   package org.codehaus.mojo.tomcat;
2   
3   /*
4    * Copyright 2005 Mark Hobson.
5    *
6    * Licensed under the Apache License, Version 2.0 (the "License");
7    * you may not use this file except in compliance with the License.
8    * You may obtain a copy of the License at
9    *
10   *      http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing, software
13   * distributed under the License is distributed on an "AS IS" BASIS,
14   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   * See the License for the specific language governing permissions and
16   * limitations under the License.
17   */
18  
19  /**
20   * Indicates an error received from Tomcat manager.
21   *
22   * @author Mark Hobson <markhobson@gmail.com>
23   * @version $Id: TomcatManagerException.java 6588 2008-03-28 12:22:57Z bentmann $
24   */
25  public class TomcatManagerException
26      extends Exception
27  {
28      // ----------------------------------------------------------------------
29      // Constants
30      // ----------------------------------------------------------------------
31  
32      /**
33       * The Java serialization UID for this class.
34       */
35      private static final long serialVersionUID = 4167819069046408371L;
36  
37      // ----------------------------------------------------------------------
38      // Constructors
39      // ----------------------------------------------------------------------
40  
41      /**
42       * Creates a new <code>TomcatManagerException</code> with no message or
43       * cause.
44       */
45      public TomcatManagerException()
46      {
47          super();
48      }
49  
50      /**
51       * Creates a new <code>TomcatManagerException</code> with the specified
52       * message and no cause.
53       *
54       * @param message the message for this exception
55       */
56      public TomcatManagerException( String message )
57      {
58          super( message );
59      }
60  
61      /**
62       * Creates a new <code>TomcatManagerException</code> with the specified
63       * message and cause.
64       *
65       * @param message the message for this exception
66       * @param cause   the cause of this exception
67       */
68      public TomcatManagerException( String message, Throwable cause )
69      {
70          super( message, cause );
71      }
72  }