PgGucCheckError
Namespace: Ankus
Assembly: Ankus.Runtime.dll
Owns optional diagnostics for a rejected configuration value while leaving reporting severity to PostgreSQL.
public sealed class PgGucCheckErrorInheritance: object
Constructors
Section titled “Constructors”PgGucCheckError(string?, string?, string?, string?)
Section titled “PgGucCheckError(string?, string?, string?, string?)”Owns optional diagnostics for a rejected configuration value while leaving reporting severity to PostgreSQL.
public PgGucCheckError(string? message = null, string? detail = null, string? hint = null, string? sqlState = null)Parameters:
message — string
The rejection message, or null to retain PostgreSQL’s standard invalid-value message.
detail — string
Optional error detail.
hint — string
An optional corrective hint.
sqlState — string
An optional five-character uppercase SQLSTATE; PostgreSQL’s default is 22023.
Properties
Section titled “Properties”Detail
Section titled “Detail”Gets optional error detail, retaining the distinction between null and empty text.
public string? Detail { get; }Value: string
Gets an optional corrective hint.
public string? Hint { get; }Value: string
Message
Section titled “Message”Gets the custom message, or null to use PostgreSQL’s standard message.
public string? Message { get; }Value: string
SqlState
Section titled “SqlState”Gets the explicit SQLSTATE, or null to use PostgreSQL’s default invalid-parameter code.
public string? SqlState { get; }Value: string