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 exception; 13 14 public ExceptionalReturnValue( Throwable exception ) 15 { 16 this.exception = exception; 17 } 18 19 public Throwable getException() 20 { 21 return exception; 22 } 23 24 } 25