Skip to content

PostgresTestException

Namespace: Ankus.Testing

Assembly: Ankus.Testing.dll

Reports a backend test failure together with its PostgreSQL session log and original exception.

public sealed class PostgresTestException : Exception, ISerializable

Initializes a failure for a named PostgreSQL test session.

Inheritance: object, Exception

Implements: ISerializable

PostgresTestException(string, string, Exception)

Section titled “PostgresTestException(string, string, Exception)”

Reports a backend test failure together with its PostgreSQL session log and original exception.

public PostgresTestException(string testName, string serverLog, Exception innerException)

Parameters:

testName — string

The name of the failed test.

serverLog — string

The log emitted by the test’s backend session.

innerException — Exception

The original test or database exception.

Initializes a failure for a named PostgreSQL test session.

Gets the server log associated with this test session.

public string ServerLog { get; }

Value: string

Gets the name of the failed test.

public string TestName { get; }

Value: string