From fad8f87116c868428786e11d92342dbf6f814cc0 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sat, 4 Mar 2006 00:03:05 +0000 Subject: * javax/net/ssl/SSLException.java (SSLException): New constructors. (serialVersionUID): New field. --- ChangeLog | 5 +++++ javax/net/ssl/SSLException.java | 15 ++++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a6161e46e..a95efc008 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-03-03 Tom Tromey + + * javax/net/ssl/SSLException.java (SSLException): New constructors. + (serialVersionUID): New field. + 2006-03-03 Tom Tromey * java/security/spec/InvalidKeySpecException.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); + } } -- cgit v1.2.1