Class ICUUncheckedIOException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.io.UncheckedIOException
com.ibm.icu.util.ICUUncheckedIOException
- All Implemented Interfaces:
Serializable
Deprecated.
ICU 79
Unchecked version of
IOException. Some ICU APIs do not throw the standard exception but
instead wrap it into this unchecked version.
Since ICU 79, this is a deprecated subclass of UncheckedIOException. You should catch
the standard unchecked exception.
This class had been introduced as a subclass of RuntimeException, because at that time
ICU did not yet require Java 8+.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intDeprecated.Field added in ICU 79 for serialization format versioning.private static final longDeprecated. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.ICU 79ICUUncheckedIOException(String message) Deprecated.ICU 79ICUUncheckedIOException(String message, Throwable cause) Deprecated.ICU 79ICUUncheckedIOException(Throwable cause) Deprecated.ICU 79 -
Method Summary
Methods inherited from class UncheckedIOException
getCauseMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDDeprecated.- See Also:
-
serialVersion
private int serialVersionDeprecated.Field added in ICU 79 for serialization format versioning.Until ICU 78, the base class was just a RuntimeException. The cause could be null or any Throwable.
Since ICU 79, the base class is an UncheckedIOException, and its cause must be a non-null IOException.
Not final, so that (a) the compiler does not omit the readResolve() code that acts on it being 0 from an old object, and (b) readResolve() can update it.
-
-
Constructor Details
-
ICUUncheckedIOException
-
ICUUncheckedIOException
Deprecated.ICU 79Constructor.- Parameters:
message- exception message string
-
ICUUncheckedIOException
-
ICUUncheckedIOException
Deprecated.ICU 79Constructor.- Parameters:
message- exception message stringcause- original exception (normally aIOException)
-
-
Method Details
-
readResolve
-