KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tonbeller > wcf > utils > SoftException


1 /*
2  * ====================================================================
3  * This software is subject to the terms of the Common Public License
4  * Agreement, available at the following URL:
5  * http://www.opensource.org/licenses/cpl.html .
6  * Copyright (C) 2003-2004 TONBELLER AG.
7  * All Rights Reserved.
8  * You must accept the terms of that agreement to use this software.
9  * ====================================================================
10  *
11  *
12  */

13 package com.tonbeller.wcf.utils;
14
15 /**
16  * wrapper for exceptions
17  *
18  * @author av
19  */

20 public class SoftException extends RuntimeException JavaDoc {
21   Throwable JavaDoc cause;
22   
23   public SoftException(Throwable JavaDoc cause) {
24     super(cause.toString());
25     this.cause = cause;
26   }
27
28   public SoftException(String JavaDoc message, Throwable JavaDoc cause) {
29     super(message);
30     this.cause = cause;
31   }
32   
33   public Throwable JavaDoc getCause() {
34     return cause;
35   }
36
37 }
38
Popular Tags