< prev index next >

src/java.base/share/classes/java/util/IllformedLocaleException.java

Print this page




  24  */
  25 
  26 /*
  27  *******************************************************************************
  28  * Copyright (C) 2009-2010, International Business Machines Corporation and    *
  29  * others. All Rights Reserved.                                                *
  30  *******************************************************************************
  31  */
  32 
  33 package java.util;
  34 
  35 /**
  36  * Thrown by methods in {@link Locale} and {@link Locale.Builder} to
  37  * indicate that an argument is not a well-formed BCP 47 tag.
  38  *
  39  * @see Locale
  40  * @since 1.7
  41  */
  42 public class IllformedLocaleException extends RuntimeException {
  43 

  44     private static final long serialVersionUID = -5245986824925681401L;
  45 
  46     private int _errIdx = -1;
  47 
  48     /**
  49      * Constructs a new <code>IllformedLocaleException</code> with no
  50      * detail message and -1 as the error index.
  51      */
  52     public IllformedLocaleException() {
  53         super();
  54     }
  55 
  56     /**
  57      * Constructs a new <code>IllformedLocaleException</code> with the
  58      * given message and -1 as the error index.
  59      *
  60      * @param message the message
  61      */
  62     public IllformedLocaleException(String message) {
  63         super(message);




  24  */
  25 
  26 /*
  27  *******************************************************************************
  28  * Copyright (C) 2009-2010, International Business Machines Corporation and    *
  29  * others. All Rights Reserved.                                                *
  30  *******************************************************************************
  31  */
  32 
  33 package java.util;
  34 
  35 /**
  36  * Thrown by methods in {@link Locale} and {@link Locale.Builder} to
  37  * indicate that an argument is not a well-formed BCP 47 tag.
  38  *
  39  * @see Locale
  40  * @since 1.7
  41  */
  42 public class IllformedLocaleException extends RuntimeException {
  43 
  44     @java.io.Serial
  45     private static final long serialVersionUID = -5245986824925681401L;
  46 
  47     private int _errIdx = -1;
  48 
  49     /**
  50      * Constructs a new <code>IllformedLocaleException</code> with no
  51      * detail message and -1 as the error index.
  52      */
  53     public IllformedLocaleException() {
  54         super();
  55     }
  56 
  57     /**
  58      * Constructs a new <code>IllformedLocaleException</code> with the
  59      * given message and -1 as the error index.
  60      *
  61      * @param message the message
  62      */
  63     public IllformedLocaleException(String message) {
  64         super(message);


< prev index next >