01: package org.apache.turbine.util;
02:
03: /*
04: * Licensed to the Apache Software Foundation (ASF) under one
05: * or more contributor license agreements. See the NOTICE file
06: * distributed with this work for additional information
07: * regarding copyright ownership. The ASF licenses this file
08: * to you under the Apache License, Version 2.0 (the
09: * "License"); you may not use this file except in compliance
10: * with the License. You may obtain a copy of the License at
11: *
12: * http://www.apache.org/licenses/LICENSE-2.0
13: *
14: * Unless required by applicable law or agreed to in writing,
15: * software distributed under the License is distributed on an
16: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17: * KIND, either express or implied. See the License for the
18: * specific language governing permissions and limitations
19: * under the License.
20: */
21:
22: import org.apache.commons.lang.exception.NestableError;
23:
24: /**
25: * Used for wrapping system errors (exceptions) that may occur in the
26: * application.
27: *
28: * @author <a href="mailto:neeme@one.lv">Neeme Praks</a>
29: * @author <a href="mailto:quintonm@bellsouth.net">Quinton McCombs</a>
30: * @version $Id: SystemError.java 534527 2007-05-02 16:10:59Z tv $
31: */
32: public class SystemError extends NestableError {
33: /** Serial Version UID */
34: private static final long serialVersionUID = 7895965535913675097L;
35:
36: /**
37: * Constructor.
38: *
39: * @param cause A Throwable object
40: */
41: public SystemError(Throwable cause) {
42: super (cause);
43: }
44:
45: /**
46: * Constructor.
47: *
48: * @param message Error message
49: */
50: public SystemError(String message) {
51: super (message);
52: }
53:
54: /**
55: * Constructor.
56: *
57: * @param cause A Throwable object
58: * @param message A String.
59: * @deprecated Use SystemError(String,Throwable) instead.
60: */
61: public SystemError(Throwable cause, String message) {
62: super (message, cause);
63: }
64:
65: /**
66: * Constructor.
67: *
68: * @param cause A Throwable object
69: * @param message A String.
70: */
71: public SystemError(String message, Throwable cause) {
72: super (message, cause);
73: }
74:
75: /**
76: * Constructor.
77: *
78: * @param cause A Throwable object
79: * @param returnCode A long.
80: * @deprecated No replacement
81: */
82: public SystemError(Throwable cause, long returnCode) {
83: super ("Return code = " + Long.toString(returnCode), cause);
84: }
85:
86: }
|