Commit | Line | Data |
---|---|---|
5db598bc NR |
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 | /** | |
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 | } |