ff40960c58a4b24e93771c777f722e1378514e2b
[fanfix.git] / src / be / nikiroo / fanfix / library / RemoteLibraryException.java
1 package be.nikiroo.fanfix.library;
2
3 import java.io.IOException;
4
5 /**
6 * Exceptions sent from remote to local.
7 *
8 * @author niki
9 */
10 public class RemoteLibraryException extends IOException {
11 private static final long serialVersionUID = 1L;
12
13 private RemoteLibraryException() {
14 // for serialization purposes
15 }
16
17 /**
18 * Wrap an {@link IOException} to allow it to pass across the network.
19 *
20 * @param cause
21 * the excption to wrap
22 */
23 public RemoteLibraryException(IOException cause) {
24 super(cause);
25 }
26
27 @Override
28 public synchronized IOException getCause() {
29 return (IOException) super.getCause();
30 }
31 }