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) 2009, International Business Machines Corporation and * 6 * others. All Rights Reserved. * 7 ******************************************************************************* 8 */ 9package com.ibm.icu.impl.locale; 10 11public class LocaleSyntaxException extends Exception { 12 13 private static final long serialVersionUID = 1L; 14 15 private int _index = -1; 16 17 public LocaleSyntaxException(String msg) { 18 this(msg, 0); 19 } 20 21 public LocaleSyntaxException(String msg, int errorIndex) { 22 super(msg); 23 _index = errorIndex; 24 } 25 26 public int getErrorIndex() { 27 return _index; 28 } 29} 30