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