2930313233343536373839
public char ex_op(char ch, int delay) throws EmptyException { sleep(delay); if (ch == 'e') { throw new EmptyException(); } else if (ch == '$') { return '\u20AC'; // euro sign, will raise DATA_CONVERSION }
1415161718192021222324
585960616263646566
public void ex_1( boolean do_it, int delay ) throws EmptyException { delay( delay ); if ( do_it ) throw new EmptyException(); else return; }
80818283848586
{ delay( delay ); if ( non_empty ) throw new NonEmptyException( 4321, "zzz" ); else throw new EmptyException( "reason" ); }