samples/incompatibilities/src-io/org/apidesign/wrapio/WrappingIOException.java
author Jaroslav Tulach <jtulach@netbeans.org>
Sat, 14 Jun 2008 09:56:58 +0200
changeset 136 324d01de8a3a
permissions -rw-r--r--
Wild import
jtulach@136
     1
package org.apidesign.wrapio;
jtulach@136
     2
jtulach@136
     3
import java.io.IOException;
jtulach@136
     4
jtulach@136
     5
// BEGIN: wrapping.WrappingIOException
jtulach@136
     6
public class WrappingIOException extends IOException {
jtulach@136
     7
  private IOException cause;
jtulach@136
     8
  public WrappingIOException(IOException cause) {
jtulach@136
     9
    this.cause = cause;
jtulach@136
    10
  }
jtulach@136
    11
  public IOException getCause() {
jtulach@136
    12
    return cause;
jtulach@136
    13
  }
jtulach@136
    14
}
jtulach@136
    15
// END: wrapping.WrappingIOException