01: /*
02: * Copyright 2005 Joe Walker
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: */
16: package org.directwebremoting.extend;
17:
18: /**
19: * Something has gone wrong when we were doing some conversion.
20: * @author Joe Walker [joe at getahead dot ltd dot uk]
21: */
22: public class ServerException extends Exception {
23: /**
24: * Default ctor
25: */
26: public ServerException() {
27: }
28:
29: /**
30: * Construct a MarshallException with a description message and exception
31: * @param message error description
32: */
33: public ServerException(String message) {
34: super (message);
35: }
36:
37: /**
38: * Construct a MarshallException with a description message and exception
39: * @param message error description
40: * @param ex error stack trace
41: */
42: public ServerException(String message, Throwable ex) {
43: super (message, ex);
44: }
45:
46: /**
47: * Construct a MarshallException with an exception
48: * @param ex error stack trace
49: */
50: public ServerException(Throwable ex) {
51: super(ex.getMessage(), ex);
52: }
53: }
|