Commit bde8b581 by Michael Koch Committed by Michael Koch

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
parent 294901f8
2003-02-11 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.
2003-02-10 Tom Tromey <tromey@redhat.com> 2003-02-10 Tom Tromey <tromey@redhat.com>
* javax/sql/ConnectionEvent.java (serialVersionUID): New field. * javax/sql/ConnectionEvent.java (serialVersionUID): New field.
......
...@@ -38,16 +38,25 @@ exception statement from your version. */ ...@@ -38,16 +38,25 @@ exception statement from your version. */
package java.nio.charset; package java.nio.charset;
/** /**
* @author Michael Koch
* @since 1.4 * @since 1.4
*/ */
public class IllegalCharsetNameException extends IllegalArgumentException public class IllegalCharsetNameException extends IllegalArgumentException
{ {
/** /**
* Compatible with JDK 1.4+
*/
private static final long serialVersionUID = 1457525358470002989L;
String charsetName;
/**
* Creates the exception * Creates the exception
*/ */
public IllegalCharsetNameException (String charsetName) public IllegalCharsetNameException (String charsetName)
{ {
super (charsetName); super ();
this.charsetName = charsetName;
} }
/** /**
...@@ -55,6 +64,6 @@ public class IllegalCharsetNameException extends IllegalArgumentException ...@@ -55,6 +64,6 @@ public class IllegalCharsetNameException extends IllegalArgumentException
*/ */
public String getCharsetName () public String getCharsetName ()
{ {
return getMessage (); return charsetName;
} }
} }
...@@ -38,16 +38,25 @@ exception statement from your version. */ ...@@ -38,16 +38,25 @@ exception statement from your version. */
package java.nio.charset; package java.nio.charset;
/** /**
* @author Michael Koch
* @since 1.4 * @since 1.4
*/ */
public class UnsupportedCharsetException extends IllegalArgumentException public class UnsupportedCharsetException extends IllegalArgumentException
{ {
/** /**
* Compatible with JDK 1.4+
*/
private static final long serialVersionUID = 1490765524727386367L;
String charsetName;
/**
* Creates the exception * Creates the exception
*/ */
public UnsupportedCharsetException (String charsetName) public UnsupportedCharsetException (String charsetName)
{ {
super (charsetName); super ();
this.charsetName = charsetName;
} }
/** /**
...@@ -55,6 +64,6 @@ public class UnsupportedCharsetException extends IllegalArgumentException ...@@ -55,6 +64,6 @@ public class UnsupportedCharsetException extends IllegalArgumentException
*/ */
public String getCharsetName () public String getCharsetName ()
{ {
return getMessage (); return charsetName;
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment