samples/incompatibilities/src-io/org/apidesign/wrapio/WrappingIOException.java
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Thu, 30 Oct 2014 20:46:27 +0100
changeset 408 9a439a79c6d0
permissions -rw-r--r--
Use scala 2.10.4 to compile on JDK8
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