jdk/src/share/classes/sun/util/locale/LocaleSyntaxException.java
changeset 9224 75c0420badef
parent 6501 684810d882b3
equal deleted inserted replaced
9223:d331b7996fc3 9224:75c0420badef
     1 /*
     1 /*
     2  * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    33 
    33 
    34 public class LocaleSyntaxException extends Exception {
    34 public class LocaleSyntaxException extends Exception {
    35 
    35 
    36     private static final long serialVersionUID = 1L;
    36     private static final long serialVersionUID = 1L;
    37 
    37 
    38     private int _index = -1;
    38     private int index = -1;
    39 
    39 
    40     public LocaleSyntaxException(String msg) {
    40     public LocaleSyntaxException(String msg) {
    41         this(msg, 0);
    41         this(msg, 0);
    42     }
    42     }
    43 
    43 
    44     public LocaleSyntaxException(String msg, int errorIndex) {
    44     public LocaleSyntaxException(String msg, int errorIndex) {
    45         super(msg);
    45         super(msg);
    46         _index = errorIndex;
    46         index = errorIndex;
    47     }
    47     }
    48 
    48 
    49     public int getErrorIndex() {
    49     public int getErrorIndex() {
    50         return _index;
    50         return index;
    51     }
    51     }
    52 }
    52 }