9using System.Security.Permissions;
20 [System.Diagnostics.CodeAnalysis.SuppressMessage(
"Microsoft.Design",
"CA1032:ImplementStandardExceptionConstructors")]
24 private string _innerStackTrace;
33 [System.Diagnostics.CodeAnalysis.SuppressMessage(
"Microsoft.Globalization",
"CA1305:SpecifyIFormatProvider", MessageId =
"System.String.Format(System.String,System.Object,System.Object,System.Object)")]
38 return string.Format(
"{0}{1}{2}",
39 _innerStackTrace, Environment.NewLine, base.StackTrace);
51 _innerStackTrace = ex.StackTrace;
59 protected CallMethodException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
62 _innerStackTrace = info.GetString(
"_innerStackTrace");
71 [System.Diagnostics.CodeAnalysis.SuppressMessage(
"Microsoft.Design",
"CA1062:ValidateArgumentsOfPublicMethods")]
73 [SecurityPermission(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.SerializationFormatter)]
74 [SecurityPermission(SecurityAction.Demand, Flags = SecurityPermissionFlag.SerializationFormatter)]
76 public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
78 base.GetObjectData(info, context);
79 info.AddValue(
"_innerStackTrace", _innerStackTrace);
This exception is returned from the CallMethod method in the server-side DataPortal and contains the ...
CallMethodException(string message, Exception ex)
Creates an instance of the type.
CallMethodException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
Creates an instance of the object for deserialization.
override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
Serializes the object.
override string StackTrace
Get the stack trace from the original exception.
@ Serializable
Prevents updating or inserting until the transaction is complete.