@@ -13,7 +13,7 @@ public class DevolutionsCryptoException : Exception
1313 /// <param name="managedError">The managed error code.</param>
1414 /// <param name="message">The exception message. (Optional).</param>
1515 /// <param name="exception">The managed exception. (Optional).</param>
16- public DevolutionsCryptoException ( ManagedError managedError , string message = null , Exception exception = null ) : base ( message )
16+ public DevolutionsCryptoException ( ManagedError managedError , string ? message = null , Exception ? exception = null ) : base ( message )
1717 {
1818 this . ManagedError = managedError ;
1919 this . ManagedException = exception ;
@@ -25,7 +25,7 @@ public DevolutionsCryptoException(ManagedError managedError, string message = nu
2525 /// <param name="nativeError">The native error code.</param>
2626 /// <param name="message">The exception message. (Optional).</param>
2727 /// <param name="exception">The managed exception. (Optional).</param>
28- public DevolutionsCryptoException ( NativeError nativeError , string message = null , Exception exception = null ) : base ( message )
28+ public DevolutionsCryptoException ( NativeError nativeError , string ? message = null , Exception ? exception = null ) : base ( message )
2929 {
3030 this . NativeError = nativeError ;
3131 this . ManagedException = exception ;
@@ -39,7 +39,7 @@ public DevolutionsCryptoException(NativeError nativeError, string message = null
3939 /// <summary>
4040 /// Gets or sets if an unknown exception happens this property will contain it..
4141 /// </summary>
42- public Exception ManagedException { get ; set ; }
42+ public Exception ? ManagedException { get ; set ; }
4343
4444 /// <summary>
4545 /// Gets override to add additionnal info in the exception message.
@@ -81,21 +81,15 @@ public string GetDetailedMessage()
8181 result = "NativeError :\r \n " ;
8282 result = result + this . NativeError . Value . ToString ( ) + "\r \n " ;
8383
84- if ( this . Data != null )
85- {
86- this . Data [ "NativeError" ] = this . NativeError . Value . ToString ( ) ;
87- }
84+ this . Data [ "NativeError" ] = this . NativeError . Value . ToString ( ) ;
8885 }
8986
9087 if ( this . ManagedError != null )
9188 {
9289 result = "ManagedError : \r \n " ;
9390 result = result + this . ManagedError . Value . ToString ( ) + "\r \n " ;
9491
95- if ( this . Data != null )
96- {
97- this . Data [ "ManagedError" ] = this . ManagedError . Value . ToString ( ) ;
98- }
92+ this . Data [ "ManagedError" ] = this . ManagedError . Value . ToString ( ) ;
9993
10094 if ( this . ManagedException != null )
10195 {
0 commit comments