CharacterCodingException.java: This class must be public.
2002-11-11 Michael Koch <konqueror@gmx.de> * java/nio/charset/CharacterCodingException.java: This class must be public. * java/nio/charset/CoderMalfunctionError.java: This class must be public. * java/nio/charset/CodingErrorAction.java: This class must be public. * java/nio/charset/IllegalCharsetNameException.java: This class must be public, better implementation. * java/nio/charset/MalformedInputException.java: This class must be public, better implementation. * java/nio/charset/UnmappableCharacterException.java: This class must be public, better implementation. * java/nio/charset/UnsupportedCharsetException.java: This class must be public, better implementation. From-SVN: r59012
This commit is contained in:
parent
dba90b0cc6
commit
ac7bc6bb2f
8 changed files with 63 additions and 27 deletions
|
@ -37,17 +37,17 @@ exception statement from your version. */
|
|||
|
||||
package java.nio.charset;
|
||||
|
||||
class UnsupportedCharsetException extends IllegalArgumentException
|
||||
/**
|
||||
* @since 1.4
|
||||
*/
|
||||
public class UnsupportedCharsetException extends IllegalArgumentException
|
||||
{
|
||||
private String charsetName;
|
||||
|
||||
/**
|
||||
* Creates the exception
|
||||
*/
|
||||
public UnsupportedCharsetException (String charsetName)
|
||||
{
|
||||
super ();
|
||||
this.charsetName = charsetName;
|
||||
super (charsetName);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -55,6 +55,6 @@ class UnsupportedCharsetException extends IllegalArgumentException
|
|||
*/
|
||||
public String getCharsetName ()
|
||||
{
|
||||
return charsetName;
|
||||
return getMessage ();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue