17 [System.Diagnostics.CodeAnalysis.SuppressMessage(
"Microsoft.Design",
"CA1032:ImplementStandardExceptionConstructors")]
22 private string _innerStackTrace;
29 get {
return _result; }
36 [System.Diagnostics.CodeAnalysis.SuppressMessage(
"Microsoft.Globalization",
"CA1305:SpecifyIFormatProvider", MessageId =
"System.String.Format(System.String,System.Object,System.Object,System.Object)")]
39 get {
return String.Format(
"{0}{1}{2}",
40 _innerStackTrace, Environment.NewLine, base.StackTrace); }
53 _innerStackTrace = ex.StackTrace;
57#if !(ANDROID || IOS) && !NETFX_CORE
63 protected DataPortalException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
68 _innerStackTrace = info.GetString(
"_innerStackTrace");
76 [System.Diagnostics.CodeAnalysis.SuppressMessage(
"Microsoft.Design",
"CA1062:ValidateArgumentsOfPublicMethods")]
78 [System.Security.Permissions.SecurityPermission(System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
79 [System.Security.Permissions.SecurityPermission(System.Security.Permissions.SecurityAction.Demand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
81 public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
83 base.GetObjectData(info, context);
84 info.AddValue(
"_result", _result);
85 info.AddValue(
"_innerStackTrace", _innerStackTrace);
This exception is returned from the server-side DataPortal and contains the exception and context dat...
DataPortalException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
Creates an instance of the object for serialization.
DataPortalResult Result
Returns the DataPortalResult object from the server.
override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
Serializes the object.
DataPortalException(string message, Exception ex, DataPortalResult result)
Creates an instance of the type.
override string StackTrace
Get the server-side stack trace from the original exception.
Returns data from the server-side DataPortal to the client-side DataPortal.
@ Serializable
Prevents updating or inserting until the transaction is complete.