src/java.base/share/classes/java/util/IllformedLocaleException.java
branchdatagramsocketimpl-branch
changeset 58678 9cf78a70fa4f
parent 47216 71c04702a3d5
child 58679 9c3209ff7550
equal deleted inserted replaced
58677:13588c901957 58678:9cf78a70fa4f
     1 /*
     1 /*
     2  * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2010, 2019, 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
    39  * @see Locale
    39  * @see Locale
    40  * @since 1.7
    40  * @since 1.7
    41  */
    41  */
    42 public class IllformedLocaleException extends RuntimeException {
    42 public class IllformedLocaleException extends RuntimeException {
    43 
    43 
       
    44     @java.io.Serial
    44     private static final long serialVersionUID = -5245986824925681401L;
    45     private static final long serialVersionUID = -5245986824925681401L;
    45 
    46 
    46     private int _errIdx = -1;
    47     private int _errIdx = -1;
    47 
    48 
    48     /**
    49     /**
    49      * Constructs a new <code>IllformedLocaleException</code> with no
    50      * Constructs a new {@code IllformedLocaleException} with no
    50      * detail message and -1 as the error index.
    51      * detail message and -1 as the error index.
    51      */
    52      */
    52     public IllformedLocaleException() {
    53     public IllformedLocaleException() {
    53         super();
    54         super();
    54     }
    55     }
    55 
    56 
    56     /**
    57     /**
    57      * Constructs a new <code>IllformedLocaleException</code> with the
    58      * Constructs a new {@code IllformedLocaleException} with the
    58      * given message and -1 as the error index.
    59      * given message and -1 as the error index.
    59      *
    60      *
    60      * @param message the message
    61      * @param message the message
    61      */
    62      */
    62     public IllformedLocaleException(String message) {
    63     public IllformedLocaleException(String message) {
    63         super(message);
    64         super(message);
    64     }
    65     }
    65 
    66 
    66     /**
    67     /**
    67      * Constructs a new <code>IllformedLocaleException</code> with the
    68      * Constructs a new {@code IllformedLocaleException} with the
    68      * given message and the error index.  The error index is the approximate
    69      * given message and the error index.  The error index is the approximate
    69      * offset from the start of the ill-formed value to the point where the
    70      * offset from the start of the ill-formed value to the point where the
    70      * parse first detected an error.  A negative error index value indicates
    71      * parse first detected an error.  A negative error index value indicates
    71      * either the error index is not applicable or unknown.
    72      * either the error index is not applicable or unknown.
    72      *
    73      *