< prev index next >

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

Print this page




  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package java.util;
  27 
  28 /**
  29  * Unchecked exception thrown when a character with an invalid Unicode code
  30  * point as defined by {@link Character#isValidCodePoint} is passed to the
  31  * {@link Formatter}.
  32  *
  33  * <p> Unless otherwise specified, passing a {@code null} argument to any
  34  * method or constructor in this class will cause a {@link
  35  * NullPointerException} to be thrown.
  36  *
  37  * @since 1.5
  38  */
  39 public class IllegalFormatCodePointException extends IllegalFormatException {
  40 

  41     private static final long serialVersionUID = 19080630L;
  42 
  43     private int c;
  44 
  45     /**
  46      * Constructs an instance of this class with the specified illegal code
  47      * point as defined by {@link Character#isValidCodePoint}.
  48      *
  49      * @param  c
  50      *         The illegal Unicode code point
  51      */
  52     public IllegalFormatCodePointException(int c) {
  53         this.c = c;
  54     }
  55 
  56     /**
  57      * Returns the illegal code point as defined by {@link
  58      * Character#isValidCodePoint}.
  59      *
  60      * @return  The illegal Unicode code point


  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package java.util;
  27 
  28 /**
  29  * Unchecked exception thrown when a character with an invalid Unicode code
  30  * point as defined by {@link Character#isValidCodePoint} is passed to the
  31  * {@link Formatter}.
  32  *
  33  * <p> Unless otherwise specified, passing a {@code null} argument to any
  34  * method or constructor in this class will cause a {@link
  35  * NullPointerException} to be thrown.
  36  *
  37  * @since 1.5
  38  */
  39 public class IllegalFormatCodePointException extends IllegalFormatException {
  40 
  41     @java.io.Serial
  42     private static final long serialVersionUID = 19080630L;
  43 
  44     private int c;
  45 
  46     /**
  47      * Constructs an instance of this class with the specified illegal code
  48      * point as defined by {@link Character#isValidCodePoint}.
  49      *
  50      * @param  c
  51      *         The illegal Unicode code point
  52      */
  53     public IllegalFormatCodePointException(int c) {
  54         this.c = c;
  55     }
  56 
  57     /**
  58      * Returns the illegal code point as defined by {@link
  59      * Character#isValidCodePoint}.
  60      *
  61      * @return  The illegal Unicode code point
< prev index next >