rt/emul/compact/src/main/java/java/nio/charset/UnsupportedCharsetException.java
author Jaroslav Tulach <jtulach@netbeans.org>
Thu, 03 Oct 2013 15:40:35 +0200
branchjdk7-b147
changeset 1334 588d5bf7a560
permissions -rw-r--r--
Set of JDK classes needed to run javac
     1 /*
     2  * Copyright (c) 2000, 2007, Oracle and/or its affiliates. All rights reserved.
     3  *
     4  * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
     5  *
     6  *
     7  *
     8  *
     9  *
    10  *
    11  *
    12  *
    13  *
    14  *
    15  *
    16  *
    17  *
    18  *
    19  *
    20  *
    21  *
    22  *
    23  *
    24  *
    25  *
    26  */
    27 
    28 // -- This file was mechanically generated: Do not edit! -- //
    29 
    30 package java.nio.charset;
    31 
    32 
    33 /**
    34  * Unchecked exception thrown when no support is available
    35  * for a requested charset.
    36  *
    37  * @since 1.4
    38  */
    39 
    40 public class UnsupportedCharsetException
    41     extends IllegalArgumentException
    42 {
    43 
    44     private static final long serialVersionUID = 1490765524727386367L;
    45 
    46     private String charsetName;
    47 
    48     /**
    49      * Constructs an instance of this class. </p>
    50      *
    51      * @param  charsetName
    52      *         The name of the unsupported charset
    53      */
    54     public UnsupportedCharsetException(String charsetName) {
    55         super(String.valueOf(charsetName));
    56 	this.charsetName = charsetName;
    57     }
    58 
    59     /**
    60      * Retrieves the name of the unsupported charset. </p>
    61      *
    62      * @return  The name of the unsupported charset
    63      */
    64     public String getCharsetName() {
    65         return charsetName;
    66     }
    67 
    68 }