From b72579c4b1200459f959bcd6a25364e239420573 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Fri, 24 Jun 2022 15:07:29 +0700 Subject: Cleanup Exception classes --- crypto/src/security/SecurityUtilityException.cs | 42 +++++++++++-------------- 1 file changed, 18 insertions(+), 24 deletions(-) (limited to 'crypto/src/security/SecurityUtilityException.cs') diff --git a/crypto/src/security/SecurityUtilityException.cs b/crypto/src/security/SecurityUtilityException.cs index d3f97c1a3..f10a7fbc5 100644 --- a/crypto/src/security/SecurityUtilityException.cs +++ b/crypto/src/security/SecurityUtilityException.cs @@ -1,36 +1,30 @@ using System; +using System.Runtime.Serialization; namespace Org.BouncyCastle.Security { -#if !PORTABLE [Serializable] -#endif public class SecurityUtilityException : Exception { - /** - * base constructor. - */ - public SecurityUtilityException() - { - } + public SecurityUtilityException() + : base() + { + } - /** - * create a SecurityUtilityException with the given message. - * - * @param message the message to be carried with the exception. - */ - public SecurityUtilityException( - string message) + public SecurityUtilityException(string message) : base(message) - { - } + { + } - public SecurityUtilityException( - string message, - Exception exception) - : base(message, exception) - { - } - } + public SecurityUtilityException(string message, Exception innerException) + : base(message, innerException) + { + } + + protected SecurityUtilityException(SerializationInfo info, StreamingContext context) + : base(info, context) + { + } + } } -- cgit 1.4.1