blob: e40c136f22e41c9bc45a67b991e4b54c5a4f70f1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
package unsw.blackout;
/**
* Represents an exception that occured because of a file transfer.
*/
public class FileTransferException extends Exception {
public FileTransferException(String message) {
super(message);
}
/**
* Represents the case where the targeted file wasn't found on the source.
*/
public static class VirtualFileNotFoundException extends FileTransferException {
public VirtualFileNotFoundException(String message) {
super(message);
}
}
/**
* Represents the case where the targeted file already existed on the target
* or was in the process of downloading.
*/
public static class VirtualFileAlreadyExistsException extends FileTransferException {
public VirtualFileAlreadyExistsException(String message) {
super(message);
}
}
/**
* Represents the case when no more bandwidth exists for a satellite to
* be able to use for new devices.
*/
public static class VirtualFileNoBandwidthException extends FileTransferException {
public VirtualFileNoBandwidthException(String message) {
super(message);
}
}
/**
* Occurs when a satellite runs out of space.
*/
public static class VirtualFileNoStorageSpaceException extends FileTransferException {
public VirtualFileNoStorageSpaceException(String message) {
super(message);
}
}
}
|