KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jmock > expectation > ExceptionalReturnValue


1 /* Copyright (c) 2000-2004 jMock.org
2  */

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

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