1/*
2 *******************************************************************************
3 * Copyright (C) 2014, International Business Machines Corporation and
4 * others. All Rights Reserved.
5 *******************************************************************************
6 */
7package com.ibm.icu.util;
8
9/**
10 * Unchecked version of {@link java.io.IOException}.
11 * Some ICU APIs do not throw the standard exception but instead wrap it
12 * into this unchecked version.
13 *
14 * <p>This currently extends {@link RuntimeException},
15 * but when ICU can rely on Java 8 this class should be changed to extend
16 * java.io.UncheckedIOException instead.
17 *
18 * @draft ICU 53
19 * @provisional This API might change or be removed in a future release.
20 */
21public class ICUUncheckedIOException extends RuntimeException {
22    private static final long serialVersionUID = 1210263498513384449L;
23
24    /**
25     * Default constructor.
26     *
27     * @draft ICU 53
28     * @provisional This API might change or be removed in a future release.
29     */
30    public ICUUncheckedIOException() {
31    }
32
33    /**
34     * Constructor.
35     *
36     * @param message exception message string
37     * @draft ICU 53
38     * @provisional This API might change or be removed in a future release.
39     */
40    public ICUUncheckedIOException(String message) {
41        super(message);
42    }
43
44    /**
45     * Constructor.
46     *
47     * @param cause original exception (normally a {@link java.io.IOException})
48     * @draft ICU 53
49     * @provisional This API might change or be removed in a future release.
50     */
51    public ICUUncheckedIOException(Throwable cause) {
52        super(cause);
53    }
54
55    /**
56     * Constructor.
57     *
58     * @param message exception message string
59     * @param cause original exception (normally a {@link java.io.IOException})
60     * @draft ICU 53
61     * @provisional This API might change or be removed in a future release.
62     */
63    public ICUUncheckedIOException(String message, Throwable cause) {
64        super(message, cause);
65    }
66}
67