ServerErrorMessage
data class ServerErrorMessage(val severity: String, val localizedSeverity: String, val code: String, val message: String, val detail: String?, val hint: String?, val position: Int?, val internalPosition: Int?, val internalQuery: String?, val where: String?, val schema: String?, val table: String?, val column: String?, val datatype: String?, val constraint: String?, val file: String?, val line: Int?, val routine: String?)
A publicly exposed data class containing all detailed fields provided by the PostgreSQL backend when an error occurs.
Reachable as OctaviusException.serverErrorMessage on any exception the server raised, and the place to look when the driver's own categorization is not specific enough
Constructors
Link copied to clipboard
constructor(severity: String, localizedSeverity: String, code: String, message: String, detail: String?, hint: String?, position: Int?, internalPosition: Int?, internalQuery: String?, where: String?, schema: String?, table: String?, column: String?, datatype: String?, constraint: String?, file: String?, line: Int?, routine: String?)
Properties
Link copied to clipboard
The constraint that was violated.
Link copied to clipboard
The equivalent position within internalQuery, for an error raised inside a statement the server generated itself.
Link copied to clipboard
The server-generated statement the error arose in, such as the body of a PL/pgSQL function.
Link copied to clipboard
The same severity as the server translated it, which is what a non-English lc_messages changes. Fit for showing to a person, not for comparing against.