KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > mockobjects > ExceptionalReturnValue


1 package com.mockobjects;
2
3 /**
4  * Sequence of exception values as required by MockMaker
5  * This is a generic class that should have been introduced to the mockobjects code stream instead of
6  * being separately included in org.mockobjects.
7  * It is possibly similar to a ReturnObjectList?
8  */

9
10 public class ExceptionalReturnValue
11 {
12     private Throwable JavaDoc exception;
13
14     public ExceptionalReturnValue( Throwable JavaDoc exception )
15     {
16         this.exception = exception;
17     }
18
19     public Throwable JavaDoc getException()
20     {
21         return exception;
22     }
23
24 }
25
Popular Tags