diff options
author | Tom Tromey <tromey@redhat.com> | 2006-03-04 00:03:05 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2006-03-04 00:03:05 +0000 |
commit | fad8f87116c868428786e11d92342dbf6f814cc0 (patch) | |
tree | 15a97d1540290bd40cf2ffb3b23acd5e70d6a4c0 | |
parent | 3e49530cc4a0df6a23df163c8da936097b571ce4 (diff) | |
download | classpath-fad8f87116c868428786e11d92342dbf6f814cc0.tar.gz |
* javax/net/ssl/SSLException.java (SSLException): New constructors.
(serialVersionUID): New field.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | javax/net/ssl/SSLException.java | 15 |
2 files changed, 19 insertions, 1 deletions
@@ -1,5 +1,10 @@ 2006-03-03 Tom Tromey <tromey@redhat.com> + * javax/net/ssl/SSLException.java (SSLException): New constructors. + (serialVersionUID): New field. + +2006-03-03 Tom Tromey <tromey@redhat.com> + * java/security/spec/InvalidKeySpecException.java (InvalidKeySpecException): New constructors. * java/security/cert/CertificateParsingException.java diff --git a/javax/net/ssl/SSLException.java b/javax/net/ssl/SSLException.java index 91d4cb78c..33c9e1af9 100644 --- a/javax/net/ssl/SSLException.java +++ b/javax/net/ssl/SSLException.java @@ -1,5 +1,5 @@ /* SSLException.java -- generic SSL exception. - Copyright (C) 2004 Free Software Foundation, Inc. + Copyright (C) 2004, 2006 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -48,6 +48,7 @@ import java.io.IOException; */ public class SSLException extends IOException { + private static final long serialVersionUID = 4511006460650708967L; // Constructor. // ------------------------------------------------------------------ @@ -56,4 +57,16 @@ public class SSLException extends IOException { super(message); } + + public SSLException(String message, Throwable cause) + { + super(message); + initCause(cause); + } + + public SSLException(Throwable cause) + { + super(cause == null ? null : cause.toString()); + initCause(cause); + } } |