InvariantViolationException()
Initializes a new instance of the InvariantViolationException class.
Declaration
public InvariantViolationException()InvariantViolationException(string)
Initializes a new instance of the InvariantViolationException class with a specified error message.
Declaration
public InvariantViolationException(string message)Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The message that describes the invariant violation. |
InvariantViolationException(string, Exception)
Initializes a new instance of the InvariantViolationException class with a specified error message and a reference to the inner exception that is the cause of this exception.
Declaration
public InvariantViolationException(string message, Exception innerException)Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The message that describes the invariant violation. |
| Exception | innerException | The exception that is the cause of the current exception. |