Click or drag to resize

RestClientExceptionTResult Class

Rest client exception.
Inheritance Hierarchy
SystemObject
  SystemException
    SystemSystemException
      SystemInvalidOperationException
        System.NetWebException
          SanteDB.Core.HttpRestClientExceptionTResult

Namespace: SanteDB.Core.Http
Assembly: SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 3.0.2081-alpha+b4ae72647f2cc271f89142f76fff26ad69e00f5a
Syntax
public class RestClientException<TResult> : WebException, 
	IHasToDisplay, IRestException

Type Parameters

TResult

[Missing <typeparam name="TResult"/> documentation for "T:SanteDB.Core.Http.RestClientException`1"]

The RestClientExceptionTResult type exposes the following members.

Constructors
Properties
 NameDescription
Public propertyDataGets a collection of key/value pairs that provide additional user-defined information about the exception.
(Inherited from Exception)
Public propertyHelpLinkGets or sets a link to the help file associated with this exception.
(Inherited from Exception)
Public propertyHResultGets or sets HRESULT, a coded numerical value that is assigned to a specific exception.
(Inherited from Exception)
Public propertyHttpStatus Gets the HTTP status of the result
Public propertyInnerExceptionGets the Exception instance that caused the current exception.
(Inherited from Exception)
Public propertyMessageGets a message that describes the current exception.
(Inherited from Exception)
Public propertyResponseGets the response that the remote host returned.
(Inherited from WebException)
Public propertyResult The result
Public propertySourceGets or sets the name of the application or the object that causes the error.
(Inherited from Exception)
Public propertyStackTraceGets a string representation of the immediate frames on the call stack.
(Inherited from Exception)
Public propertyStatusGets the status of the response.
(Inherited from WebException)
Public propertyTargetSiteGets the method that throws the current exception.
(Inherited from Exception)
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetBaseExceptionWhen overridden in a derived class, returns the Exception that is the root cause of one or more subsequent exceptions.
(Inherited from Exception)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetObjectDataPopulates a SerializationInfo instance with the data needed to serialize the WebException.
(Inherited from WebException)
Public methodGetTypeGets the runtime type of the current instance.
(Inherited from Exception)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToDisplay Get the message for rendering in the user interface
Public methodToString Returns a string that represents the current object.
(Overrides ExceptionToString)
Top
Events
 NameDescription
Protected eventSerializeObjectStateOccurs when an exception is serialized to create an exception state object that contains serialized data about the exception.
(Inherited from Exception)
Top
Extension Methods
 NameDescription
Public Extension MethodConvertTReturn The purpose of this method is to convert object me to TReturn. Why? Because if you have an instance of Act that actually needs to be a SubstanceAdministration we can't just cast so we have to copy.
(Defined by ExtensionMethods)
Public Extension MethodGetHttpStatusCode Get the HTTP status code for exception
(Defined by HttpErrorUtility)
Public Extension MethodIsCommunicationException Will iterate through the exception and determine whether the exception was caused by a communication/network issue
(Defined by ExtensionMethods)
Public Extension MethodIsHttpException Determines if exception represents an HTTP error condition
(Defined by ExtensionMethods)
Public Extension MethodIsTimeoutException Iterates through the exception causes and returns true if any exception in the hierarchy is a TimeoutException
(Defined by ExtensionMethods)
Public Extension MethodToHumanReadableString Convert the exception to a human readable string
(Defined by ExtensionMethods)
Public Extension MethodWithControl With control parameter is used as a wrapper for _ parameters
(Defined by QueryFilterExtensions)
Top
See Also