Skip to main content

Definition

Assembly: CloudNimble.Breakdance.DotHttp.dll Namespace: CloudNimble.Breakdance.DotHttp Inheritance: System.Exception

Syntax

Summary

Exception thrown when a DotHttp assertion fails.

Remarks

This exception is thrown by DotHttpAssertions methods when HTTP response validation fails.

Examples

Constructors

.ctor

Initializes a new instance of the DotHttpAssertionException class.

Syntax

.ctor

Initializes a new instance of the DotHttpAssertionException class with a specified error message.

Syntax

Parameters

NameTypeDescription
messagestringThe message that describes the error.

.ctor

Initializes a new instance of the DotHttpAssertionException class with a specified error message and inner exception.

Syntax

Parameters

NameTypeDescription
messagestringThe message that describes the error.
innerExceptionSystem.ExceptionThe exception that is the cause of the current exception.