1 /* GENERATED SOURCE. DO NOT MODIFY. */ 2 // © 2018 and later: Unicode, Inc. and others. 3 // License & terms of use: http://www.unicode.org/copyright.html#License 4 package ohos.global.icu.number; 5 6 /** 7 * Exception used for illegal number skeleton strings. 8 * 9 * @see NumberFormatter 10 * @hide exposed on OHOS 11 */ 12 public class SkeletonSyntaxException extends IllegalArgumentException { 13 private static final long serialVersionUID = 7733971331648360554L; 14 15 /** 16 * Construct a new SkeletonSyntaxException with information about the token at the point of failure. 17 * 18 * @see NumberFormatter 19 */ SkeletonSyntaxException(String message, CharSequence token)20 public SkeletonSyntaxException(String message, CharSequence token) { 21 super("Syntax error in skeleton string: " + message + ": " + token); 22 } 23 24 /** 25 * Construct a new SkeletonSyntaxException with information about the token at the point of failure. 26 * 27 * @see NumberFormatter 28 */ SkeletonSyntaxException(String message, CharSequence token, Throwable cause)29 public SkeletonSyntaxException(String message, CharSequence token, Throwable cause) { 30 super("Syntax error in skeleton string: " + message + ": " + token, cause); 31 } 32 } 33