blob: fd2a162832cbd996d7a6b7e290574159f2f78603 (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
/*
*******************************************************************************
* Copyright (C) 2014, International Business Machines Corporation and
* others. All Rights Reserved.
*******************************************************************************
*/
package com.ibm.icu.util;
/**
* Unchecked version of {@link java.io.IOException}.
* Some ICU APIs do not throw the standard exception but instead wrap it
* into this unchecked version.
*
* <p>This currently extends {@link RuntimeException},
* but when ICU can rely on Java 8 this class should be changed to extend
* java.io.UncheckedIOException instead.
*
* @draft ICU 53
* @provisional This API might change or be removed in a future release.
*/
public class ICUUncheckedIOException extends RuntimeException {
private static final long serialVersionUID = 1210263498513384449L;
/**
* Default constructor.
*
* @draft ICU 53
* @provisional This API might change or be removed in a future release.
*/
public ICUUncheckedIOException() {
}
/**
* Constructor.
*
* @param message exception message string
* @draft ICU 53
* @provisional This API might change or be removed in a future release.
*/
public ICUUncheckedIOException(String message) {
super(message);
}
/**
* Constructor.
*
* @param cause original exception (normally a {@link java.io.IOException})
* @draft ICU 53
* @provisional This API might change or be removed in a future release.
*/
public ICUUncheckedIOException(Throwable cause) {
super(cause);
}
/**
* Constructor.
*
* @param message exception message string
* @param cause original exception (normally a {@link java.io.IOException})
* @draft ICU 53
* @provisional This API might change or be removed in a future release.
*/
public ICUUncheckedIOException(String message, Throwable cause) {
super(message, cause);
}
}
|