• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* GENERATED SOURCE. DO NOT MODIFY. */
2 // © 2016 and later: Unicode, Inc. and others.
3 // License & terms of use: http://www.unicode.org/copyright.html#License
4 /*
5  *******************************************************************************
6  * Copyright (C) 2014-2015, International Business Machines Corporation and
7  * others. All Rights Reserved.
8  *******************************************************************************
9  */
10 package ohos.global.icu.util;
11 
12 /**
13  * Unchecked version of {@link java.io.IOException}.
14  * Some ICU APIs do not throw the standard exception but instead wrap it
15  * into this unchecked version.
16  *
17  * <p>This currently extends {@link RuntimeException},
18  * but when ICU can rely on Java 8 this class should be changed to extend
19  * java.io.UncheckedIOException instead.
20  */
21 public class ICUUncheckedIOException extends RuntimeException {
22     private static final long serialVersionUID = 1210263498513384449L;
23 
24     /**
25      * Default constructor.
26      */
ICUUncheckedIOException()27     public ICUUncheckedIOException() {
28     }
29 
30     /**
31      * Constructor.
32      *
33      * @param message exception message string
34      */
ICUUncheckedIOException(String message)35     public ICUUncheckedIOException(String message) {
36         super(message);
37     }
38 
39     /**
40      * Constructor.
41      *
42      * @param cause original exception (normally a {@link java.io.IOException})
43      */
ICUUncheckedIOException(Throwable cause)44     public ICUUncheckedIOException(Throwable cause) {
45         super(cause);
46     }
47 
48     /**
49      * Constructor.
50      *
51      * @param message exception message string
52      * @param cause original exception (normally a {@link java.io.IOException})
53      */
ICUUncheckedIOException(String message, Throwable cause)54     public ICUUncheckedIOException(String message, Throwable cause) {
55         super(message, cause);
56     }
57 }
58