1 files changed, 18 insertions, 24 deletions
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)
+ {
+ }
+ }
}
|