1 /* 2 ******************************************************************************* 3 * Copyright (C) 2014, International Business Machines Corporation and 4 * others. All Rights Reserved. 5 ******************************************************************************* 6 */ 7 package com.ibm.icu.util; 8 9 /** 10 * Base class for unchecked, ICU-specific exceptions. 11 * 12 * @draft ICU 53 13 * @provisional This API might change or be removed in a future release. 14 */ 15 public class ICUException extends RuntimeException { 16 private static final long serialVersionUID = -3067399656455755650L; 17 18 /** 19 * Default constructor. 20 * 21 * @draft ICU 53 22 * @provisional This API might change or be removed in a future release. 23 */ ICUException()24 public ICUException() { 25 } 26 27 /** 28 * Constructor. 29 * 30 * @param message exception message string 31 * @draft ICU 53 32 * @provisional This API might change or be removed in a future release. 33 */ ICUException(String message)34 public ICUException(String message) { 35 super(message); 36 } 37 38 /** 39 * Constructor. 40 * 41 * @param cause original exception 42 * @draft ICU 53 43 * @provisional This API might change or be removed in a future release. 44 */ ICUException(Throwable cause)45 public ICUException(Throwable cause) { 46 super(cause); 47 } 48 49 /** 50 * Constructor. 51 * 52 * @param message exception message string 53 * @param cause original exception 54 * @draft ICU 53 55 * @provisional This API might change or be removed in a future release. 56 */ ICUException(String message, Throwable cause)57 public ICUException(String message, Throwable cause) { 58 super(message, cause); 59 } 60 } 61