C# Class Headless.HttpOutcomeException

Inheritance: System.Exception
显示文件 Open project: roryprimrose/Headless

Public Methods

Method Description
GetObjectData ( SerializationInfo info, StreamingContext context ) : void
HttpOutcomeException ( ) : System

Initializes a new instance of the HttpOutcomeException class.

HttpOutcomeException ( HttpResult result, Exception inner ) : System

Initializes a new instance of the HttpOutcomeException class.

HttpOutcomeException ( HttpResult result, HttpStatusCode expectedStatusCode ) : System

Initializes a new instance of the HttpOutcomeException class.

HttpOutcomeException ( HttpResult result, Uri targetLocation ) : System

Initializes a new instance of the HttpOutcomeException class.

HttpOutcomeException ( string message ) : System

Initializes a new instance of the HttpOutcomeException class.

HttpOutcomeException ( string message, Exception inner ) : System

Initializes a new instance of the HttpOutcomeException class.

Protected Methods

Method Description
HttpOutcomeException ( SerializationInfo info, StreamingContext context ) : System

Initializes a new instance of the HttpOutcomeException class.

Private Methods

Method Description
GenerateFailureMessage ( HttpResult result, Exception inner ) : string

Generates the failure message.

GenerateIncorrectLocationMessage ( HttpResult result, Uri targetLocation ) : string

Generates the incorrect location message.

GenerateIncorrectStatusMessage ( HttpResult result, HttpStatusCode expectedStatusCode ) : string

Generates the incorrect status message.

Method Details

GetObjectData() public method

public GetObjectData ( SerializationInfo info, StreamingContext context ) : void
info System.Runtime.Serialization.SerializationInfo
context System.Runtime.Serialization.StreamingContext
return void

HttpOutcomeException() public method

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

HttpOutcomeException() public method

Initializes a new instance of the HttpOutcomeException class.
public HttpOutcomeException ( HttpResult result, Exception inner ) : System
result HttpResult The result.
inner System.Exception The inner.
return System

HttpOutcomeException() public method

Initializes a new instance of the HttpOutcomeException class.
/// The parameter is null. ///
public HttpOutcomeException ( HttpResult result, HttpStatusCode expectedStatusCode ) : System
result HttpResult /// The result. ///
expectedStatusCode HttpStatusCode /// The expected status code. ///
return System

HttpOutcomeException() public method

Initializes a new instance of the HttpOutcomeException class.
/// The parameter is null. ///
public HttpOutcomeException ( HttpResult result, Uri targetLocation ) : System
result HttpResult /// The result. ///
targetLocation System.Uri /// The target location. ///
return System

HttpOutcomeException() protected method

Initializes a new instance of the HttpOutcomeException class.
protected HttpOutcomeException ( SerializationInfo info, StreamingContext context ) : System
info System.Runtime.Serialization.SerializationInfo /// The that holds the serialized object /// data about the exception being thrown. ///
context System.Runtime.Serialization.StreamingContext /// The that contains contextual /// information about the source or destination. ///
return System

HttpOutcomeException() public method

Initializes a new instance of the HttpOutcomeException class.
public HttpOutcomeException ( string message ) : System
message string /// The message that describes the error. ///
return System

HttpOutcomeException() public method

Initializes a new instance of the HttpOutcomeException class.
public HttpOutcomeException ( string message, Exception inner ) : System
message string /// The message. ///
inner System.Exception /// The inner. ///
return System