OperationResponse.Error (String, Exception) Method

Create an error
Public Shared Function Error( _ 
ByVal msg As String, _ 
ByVal exception As Exception
) As OperationResponse
This language is not supported or no code example is available.
public static OperationResponse Error( 
string msg
Exception exception 
)
This language is not supported or no code example is available.
public:  
static OperationResponse^ Error( 
String^ msg
Exception^ exception 
)
This language is not supported or no code example is available.
public static function Error( 
msg : String
exception : Exception 
) : OperationResponse;
This language is not supported or no code example is available.

Parameters

msg
string

the error message

exception
Exception

the exception that caused the error response. Note that the exception is not serialised, and is intended to be used internally for logging purposes.

Return Value

OperationResponse

the response object

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1

In this article

Definition