]> gitweb.fperrin.net Git - Dictionary.git/blob - jars/icu4j-4_4_2-src/main/classes/core/src/com/ibm/icu/impl/locale/LocaleSyntaxException.java
go
[Dictionary.git] / jars / icu4j-4_4_2-src / main / classes / core / src / com / ibm / icu / impl / locale / LocaleSyntaxException.java
1 /*\r
2  *******************************************************************************\r
3  * Copyright (C) 2009, International Business Machines Corporation and         *\r
4  * others. All Rights Reserved.                                                *\r
5  *******************************************************************************\r
6  */\r
7 package com.ibm.icu.impl.locale;\r
8 \r
9 public class LocaleSyntaxException extends Exception {\r
10 \r
11     private static final long serialVersionUID = 1L;\r
12 \r
13     private int _index = -1;\r
14 \r
15     public LocaleSyntaxException(String msg) {\r
16         this(msg, 0);\r
17     }\r
18 \r
19     public LocaleSyntaxException(String msg, int errorIndex) {\r
20         super(msg);\r
21         _index = errorIndex;\r
22     }\r
23 \r
24     public int getErrorIndex() {\r
25         return _index;\r
26     }\r
27 }\r