diff options
Diffstat (limited to 'java/security/ProviderException.java')
-rw-r--r-- | java/security/ProviderException.java | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/java/security/ProviderException.java b/java/security/ProviderException.java index 2dafcec34..4559a1708 100644 --- a/java/security/ProviderException.java +++ b/java/security/ProviderException.java @@ -1,5 +1,5 @@ /* ProviderException.java -- Generic security provider runtime exception - Copyright (C) 1998, 2002, 2005 Free Software Foundation, Inc. + Copyright (C) 1998, 2002, 2005, 2006 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -67,4 +67,26 @@ public class ProviderException extends RuntimeException { super(msg); } + + /** + * Create a new instance with a descriptive error message and + * a cause. + * @param s the descriptive error message + * @param cause the cause + * @since 1.5 + */ + public ProviderException(String s, Throwable cause) + { + super(s, cause); + } + + /** + * Create a new instance with a cause. + * @param cause the cause + * @since 1.5 + */ + public ProviderException(Throwable cause) + { + super(cause); + } } |