KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > mockobjects > examples > calcserver > CalculatorException


1 package com.mockobjects.examples.calcserver;
2
3 public class CalculatorException extends Exception JavaDoc {
4
5     /**
6      * CalculatorException constructor comment.
7      */

8     public CalculatorException() {
9         super();
10     }
11
12
13     /**
14      * CalculatorException constructor comment.
15      * @param arg1 java.lang.String
16      */

17     public CalculatorException(String JavaDoc arg1) {
18         super(arg1);
19     }
20
21
22     /**
23      * CalculatorException constructor comment.
24      * @param arg1 java.lang.String
25      * @param arg2 java.lang.Throwable
26      */

27     public CalculatorException(String JavaDoc msg, Throwable JavaDoc ex) {
28         this(msg + ex.toString());
29     }
30
31
32     /**
33      * CalculatorException constructor comment.
34      * @param arg1 java.lang.Throwable
35      */

36     public CalculatorException(Throwable JavaDoc ex) {
37         this(ex.toString());
38     }
39 }
Popular Tags