WindowsDevicePortalWrapper  0.9.0.0
A client library that wraps the Windows Device Portal REST APIs.
Classes | Public Member Functions | Properties | List of all members
Microsoft.Tools.WindowsDevicePortal.DevicePortalException Class Reference

Base exception class for a Device Portal exception More...

Inheritance diagram for Microsoft.Tools.WindowsDevicePortal.DevicePortalException:

Classes

class  HttpErrorResponse
 Object containing additional error information from an HTTP response. More...
 

Public Member Functions

 DevicePortalException (HttpStatusCode statusCode, HttpErrorResponse errorResponse, Uri requestUri=null, string message="", Exception innerException=null)
 Initializes a new instance of the DevicePortalException class. More...
 
 DevicePortalException (HttpResponseMessage responseMessage, string message="", Exception innerException=null)
 Initializes a new instance of the DevicePortalException class. More...
 
 DevicePortalException (HttpStatusCode statusCode, string reason, Uri requestUri=null, string message="", Exception innerException=null)
 Initializes a new instance of the DevicePortalException class. More...
 
override void GetObjectData (SerializationInfo info, StreamingContext context)
 Get object data override More...
 

Properties

HttpStatusCode StatusCode [get]
 Gets the HTTP Status code. More...
 
string Reason [get]
 Gets a reason for the exception. More...
 
Uri RequestUri [get]
 Gets the request URI that threw the exception. More...
 

Detailed Description

Base exception class for a Device Portal exception

Constructor & Destructor Documentation

Microsoft.Tools.WindowsDevicePortal.DevicePortalException.DevicePortalException ( HttpStatusCode  statusCode,
HttpErrorResponse  errorResponse,
Uri  requestUri = null,
string  message = "",
Exception  innerException = null 
)
inline

Initializes a new instance of the DevicePortalException class.

Parameters
statusCodeThe Http status code.
errorResponseHttp parsed error response message.
requestUriRequest URI which threw the exception.
messageOptional exception message.
innerExceptionOptional inner exception.
Microsoft.Tools.WindowsDevicePortal.DevicePortalException.DevicePortalException ( HttpResponseMessage  responseMessage,
string  message = "",
Exception  innerException = null 
)
inline

Initializes a new instance of the DevicePortalException class.

Parameters
responseMessageHttp response message.
messageOptional exception message.
innerExceptionOptional inner exception.
Microsoft.Tools.WindowsDevicePortal.DevicePortalException.DevicePortalException ( HttpStatusCode  statusCode,
string  reason,
Uri  requestUri = null,
string  message = "",
Exception  innerException = null 
)
inline

Initializes a new instance of the DevicePortalException class.

Parameters
statusCodeHttp status code.
reasonReason for exception.
requestUriRequest URI which threw the exception.
messageOptional message.
innerExceptionOptional inner exception.

Member Function Documentation

override void Microsoft.Tools.WindowsDevicePortal.DevicePortalException.GetObjectData ( SerializationInfo  info,
StreamingContext  context 
)
inline

Get object data override

Parameters
infoSerialization info
contextStreaming context

Property Documentation

string Microsoft.Tools.WindowsDevicePortal.DevicePortalException.Reason
get

Gets a reason for the exception.

Uri Microsoft.Tools.WindowsDevicePortal.DevicePortalException.RequestUri
get

Gets the request URI that threw the exception.

HttpStatusCode Microsoft.Tools.WindowsDevicePortal.DevicePortalException.StatusCode
get

Gets the HTTP Status code.


The documentation for this class was generated from the following file: