C# Class CarDeliveryNetwork.Api.Data.HttpResourceFaultException

Represents errors that occur on calls to the API
Inheritance: System.Exception
Exibir arquivo Open project: cardeliverynetwork/openapi.net

Public Methods

Method Description
Forbidden ( string messageFormat ) : HttpResourceFaultException

Helper method to throw HttpResourceFaultException Forbodden

HttpResourceFaultException ( HttpStatusCode statusCode, string message = null, Exception innerException = null ) : System

Initializes a new instance of the HttpResourceFaultException class.

Method Details

Forbidden() public static method

Helper method to throw HttpResourceFaultException Forbodden
public static Forbidden ( string messageFormat ) : HttpResourceFaultException
messageFormat string Message format string
return HttpResourceFaultException

HttpResourceFaultException() public method

Initializes a new instance of the HttpResourceFaultException class.
public HttpResourceFaultException ( HttpStatusCode statusCode, string message = null, Exception innerException = null ) : System
statusCode HttpStatusCode The status code.
message string The message.
innerException System.Exception The inner exception.
return System