C# Class Microsoft.ProjectOxford.Text.WebLM.ClientException

The Exception will be shown to client.
Inheritance: System.Exception
显示文件 Open project: Microsoft/ProjectOxford-ClientSDK

Public Methods

Method Description
BadRequest ( string message ) : ClientException

Create Client Exception of Bad Request.

ClientException ( ) : System

Initializes a new instance of the ClientException class.

ClientException ( Microsoft.ProjectOxford.Text.WebLM.ClientError error, HttpStatusCode httpStatus ) : System

Initializes a new instance of the ClientException class.

ClientException ( string message ) : System

Initializes a new instance of the ClientException class.

ClientException ( string message, Exception innerException ) : System

Initializes a new instance of the ClientException class.

ClientException ( string message, HttpStatusCode httpStatus ) : System

Initializes a new instance of the ClientException class.

ClientException ( string message, string errorCode, HttpStatusCode httpStatus, Exception innerException ) : System

Initializes a new instance of the ClientException class.

Method Details

BadRequest() public static method

Create Client Exception of Bad Request.
public static BadRequest ( string message ) : ClientException
message string The corresponding error message.
return ClientException

ClientException() public method

Initializes a new instance of the ClientException class.
public ClientException ( ) : System
return System

ClientException() public method

Initializes a new instance of the ClientException class.
public ClientException ( Microsoft.ProjectOxford.Text.WebLM.ClientError error, HttpStatusCode httpStatus ) : System
error Microsoft.ProjectOxford.Text.WebLM.ClientError The error entity.
httpStatus HttpStatusCode The http status.
return System

ClientException() public method

Initializes a new instance of the ClientException class.
public ClientException ( string message ) : System
message string The corresponding error message.
return System

ClientException() public method

Initializes a new instance of the ClientException class.
public ClientException ( string message, Exception innerException ) : System
message string The corresponding error message.
innerException System.Exception The inner exception.
return System

ClientException() public method

Initializes a new instance of the ClientException class.
public ClientException ( string message, HttpStatusCode httpStatus ) : System
message string The corresponding error message.
httpStatus HttpStatusCode The Http Status code.
return System

ClientException() public method

Initializes a new instance of the ClientException class.
public ClientException ( string message, string errorCode, HttpStatusCode httpStatus, Exception innerException ) : System
message string The corresponding error message.
errorCode string The error code.
httpStatus HttpStatusCode The http status.
innerException System.Exception The inner exception.
return System