1 // © 2016 and later: Unicode, Inc. and others. 2 // License & terms of use: http://www.unicode.org/copyright.html#License 3 /* 4 ******************************************************************************* 5 * Copyright (C) 2014-2015, International Business Machines Corporation and 6 * others. All Rights Reserved. 7 ******************************************************************************* 8 */ 9 package com.ibm.icu.util; 10 11 /** 12 * Base class for unchecked, ICU-specific exceptions. 13 * 14 * @stable ICU 53 15 */ 16 public class ICUException extends RuntimeException { 17 private static final long serialVersionUID = -3067399656455755650L; 18 19 /** 20 * Default constructor. 21 * 22 * @stable ICU 53 23 */ ICUException()24 public ICUException() { 25 } 26 27 /** 28 * Constructor. 29 * 30 * @param message exception message string 31 * @stable ICU 53 32 */ ICUException(String message)33 public ICUException(String message) { 34 super(message); 35 } 36 37 /** 38 * Constructor. 39 * 40 * @param cause original exception 41 * @stable ICU 53 42 */ ICUException(Throwable cause)43 public ICUException(Throwable cause) { 44 super(cause); 45 } 46 47 /** 48 * Constructor. 49 * 50 * @param message exception message string 51 * @param cause original exception 52 * @stable ICU 53 53 */ ICUException(String message, Throwable cause)54 public ICUException(String message, Throwable cause) { 55 super(message, cause); 56 } 57 } 58