You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
1.1 KiB
69 lines
1.1 KiB
/*
|
|
* Copyright (c) 2000, 2007, Oracle and/or its affiliates. All rights reserved.
|
|
*
|
|
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*/
|
|
|
|
// -- This file was mechanically generated: Do not edit! -- //
|
|
|
|
package java.nio.charset;
|
|
|
|
|
|
/**
|
|
* Unchecked exception thrown when a string that is not a
|
|
* <a href=Charset.html#names>legal charset name</a> is used as such.
|
|
*
|
|
* @since 1.4
|
|
*/
|
|
|
|
public class IllegalCharsetNameException
|
|
extends IllegalArgumentException
|
|
{
|
|
|
|
private static final long serialVersionUID = 1457525358470002989L;
|
|
|
|
private String charsetName;
|
|
|
|
/**
|
|
* Constructs an instance of this class.
|
|
*
|
|
* @param charsetName
|
|
* The illegal charset name
|
|
*/
|
|
public IllegalCharsetNameException(String charsetName) {
|
|
super(String.valueOf(charsetName));
|
|
this.charsetName = charsetName;
|
|
}
|
|
|
|
/**
|
|
* Retrieves the illegal charset name.
|
|
*
|
|
* @return The illegal charset name
|
|
*/
|
|
public String getCharsetName() {
|
|
return charsetName;
|
|
}
|
|
|
|
}
|