01: /*
02: * Copyright (c) 2002-2006 by OpenSymphony
03: * All rights reserved.
04: */
05: package com.opensymphony.webwork;
06:
07: import com.opensymphony.xwork.XworkException;
08:
09: /**
10: * <code>WebWorkException</code>
11: *
12: * A generic runtime exception that optionally contains Location information
13: *
14: * @author <a href="mailto:hermanns@aixcept.de">Rainer Hermanns</a>
15: * @version $Id: WebWorkException.java 2647 2006-07-13 21:51:16Z rainerh $
16: */
17: public class WebWorkException extends XworkException {
18:
19: /**
20: * Constructs a <code>WebWorkException</code> with no detail message.
21: */
22: public WebWorkException() {
23: }
24:
25: /**
26: * Constructs a <code>WebWorkException</code> with the specified
27: * detail message.
28: *
29: * @param s the detail message.
30: */
31: public WebWorkException(String s) {
32: this (s, null, null);
33: }
34:
35: /**
36: * Constructs a <code>WebWorkException</code> with the specified
37: * detail message and target.
38: *
39: * @param s the detail message.
40: * @param target the target of the exception.
41: */
42: public WebWorkException(String s, Object target) {
43: this (s, (Throwable) null, target);
44: }
45:
46: /**
47: * Constructs a <code>WebWorkException</code> with the root cause
48: *
49: * @param cause The wrapped exception
50: */
51: public WebWorkException(Throwable cause) {
52: this (null, cause, null);
53: }
54:
55: /**
56: * Constructs a <code>WebWorkException</code> with the root cause and target
57: *
58: * @param cause The wrapped exception
59: * @param target The target of the exception
60: */
61: public WebWorkException(Throwable cause, Object target) {
62: this (null, cause, target);
63: }
64:
65: /**
66: * Constructs a <code>WebWorkException</code> with the specified
67: * detail message and exception cause.
68: *
69: * @param s the detail message.
70: * @param cause the wrapped exception
71: */
72: public WebWorkException(String s, Throwable cause) {
73: this (s, cause, null);
74: }
75:
76: /**
77: * Constructs a <code>WebWorkException</code> with the specified
78: * detail message, cause, and target
79: *
80: * @param s the detail message.
81: * @param cause The wrapped exception
82: * @param target The target of the exception
83: */
84: public WebWorkException(String s, Throwable cause, Object target) {
85: super(s, cause, target);
86: }
87:
88: }
|