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 no support is available
35 * for a requested charset.
40 public class UnsupportedCharsetException
41 extends IllegalArgumentException
44 private static final long serialVersionUID = 1490765524727386367L;
46 private String charsetName;
49 * Constructs an instance of this class. </p>
52 * The name of the unsupported charset
54 public UnsupportedCharsetException(String charsetName) {
55 super(String.valueOf(charsetName));
56 this.charsetName = charsetName;
60 * Retrieves the name of the unsupported charset. </p>
62 * @return The name of the unsupported charset
64 public String getCharsetName() {