2 * Copyright (c) 2000, 2007, Oracle and/or its affiliates. All rights reserved.
4 * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
28 // -- This file was mechanically generated: Do not edit! -- //
30 package java.nio.charset;
34 * Unchecked exception thrown when a string that is not a
35 * <a href=Charset.html#names>legal charset name</a> is used as such.
40 public class IllegalCharsetNameException
41 extends IllegalArgumentException
44 private static final long serialVersionUID = 1457525358470002989L;
46 private String charsetName;
49 * Constructs an instance of this class. </p>
52 * The illegal charset name
54 public IllegalCharsetNameException(String charsetName) {
55 super(String.valueOf(charsetName));
56 this.charsetName = charsetName;
60 * Retrieves the illegal charset name. </p>
62 * @return The illegal charset name
64 public String getCharsetName() {