2003-02-08 Michael Koch <konqueror@gmx.de>
* java/nio/charset/IllegalCharsetNameException.java (serialVersionUID): New member variable. (charsetName): New member variable. (IllegalCharsetException): New implementation. (getCharsetName): New implementation. * java/nio/charset/UnsupportedCharsetException.java (serialVersionUID): New member variable. (charsetName): New member variable. (UnsupportedCharsetException): New implementation. (getCharsetName): New implementation. From-SVN: r62680
This commit is contained in:
committed by
Michael Koch
parent
294901f879
commit
bde8b5818b
@@ -38,16 +38,25 @@ exception statement from your version. */
|
||||
package java.nio.charset;
|
||||
|
||||
/**
|
||||
* @author Michael Koch
|
||||
* @since 1.4
|
||||
*/
|
||||
public class UnsupportedCharsetException extends IllegalArgumentException
|
||||
{
|
||||
/**
|
||||
* Compatible with JDK 1.4+
|
||||
*/
|
||||
private static final long serialVersionUID = 1490765524727386367L;
|
||||
|
||||
String charsetName;
|
||||
|
||||
/**
|
||||
* Creates the exception
|
||||
*/
|
||||
public UnsupportedCharsetException (String charsetName)
|
||||
{
|
||||
super (charsetName);
|
||||
super ();
|
||||
this.charsetName = charsetName;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -55,6 +64,6 @@ public class UnsupportedCharsetException extends IllegalArgumentException
|
||||
*/
|
||||
public String getCharsetName ()
|
||||
{
|
||||
return getMessage ();
|
||||
return charsetName;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user