1/* GENERATED SOURCE. DO NOT MODIFY. */ 2/* 3 ******************************************************************************* 4 * Copyright (C) 2009, International Business Machines Corporation and * 5 * others. All Rights Reserved. * 6 ******************************************************************************* 7 */ 8package android.icu.impl.locale; 9 10/** 11 * @hide Only a subset of ICU is exposed in Android 12 */ 13public class LocaleSyntaxException extends Exception { 14 15 private static final long serialVersionUID = 1L; 16 17 private int _index = -1; 18 19 public LocaleSyntaxException(String msg) { 20 this(msg, 0); 21 } 22 23 public LocaleSyntaxException(String msg, int errorIndex) { 24 super(msg); 25 _index = errorIndex; 26 } 27 28 public int getErrorIndex() { 29 return _index; 30 } 31} 32