PostgresErrorException

skunk.exception.PostgresErrorException
See thePostgresErrorException companion object
class PostgresErrorException(sql: String, sqlOrigin: Option[Origin], info: Map[Char, String], history: List[Either[Any, Any]], arguments: List[(Type, Option[Encoded])], argumentsOrigin: Option[Origin]) extends SkunkException

Attributes

Companion
object
Source
PostgresErrorException.scala
Graph
Supertypes
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
Known subtypes

Members list

Value members

Concrete methods

def code: String

The SQLSTATE code for the error (see Appendix A) .Not localizable .Always present .

The SQLSTATE code for the error (see Appendix A) .Not localizable .Always present .

Attributes

Source
PostgresErrorException.scala
def columnName: Option[String]

If the error was associated with a specific table column, the name of the column .(Refer to the schema and table name fields to identify the table.)

If the error was associated with a specific table column, the name of the column .(Refer to the schema and table name fields to identify the table.)

Attributes

Source
PostgresErrorException.scala
def constraintName: Option[String]

If the error was associated with a specific constraint, the name of the constraint .Refer to fields listed above for the associated table or domain .(For this purpose, indexes are treated as constraints, even if they weren't created with constraint syntax.)

If the error was associated with a specific constraint, the name of the constraint .Refer to fields listed above for the associated table or domain .(For this purpose, indexes are treated as constraints, even if they weren't created with constraint syntax.)

Attributes

Source
PostgresErrorException.scala
def dataTypeName: Option[String]

If the error was associated with a specific data type, the name of the data type .(Refer to the schema name field for the name of the data type's schema.)

If the error was associated with a specific data type, the name of the data type .(Refer to the schema name field for the name of the data type's schema.)

Attributes

Source
PostgresErrorException.scala
override def fields: List[Attribute[_]]

Attributes

Definition Classes
Source
PostgresErrorException.scala
def fileName: Option[String]

The file name of the source-code location where the error was reported .

The file name of the source-code location where the error was reported .

Attributes

Source
PostgresErrorException.scala
def internalPosition: Option[Int]

Defined the same as the P field, but used when the cursor position refers to an internally generated command rather than the one submitted by the client .The query field will always appear when this field appears.

Defined the same as the P field, but used when the cursor position refers to an internally generated command rather than the one submitted by the client .The query field will always appear when this field appears.

Attributes

Source
PostgresErrorException.scala
def internalQuery: Option[String]

The text of a failed internally-generated command .This could be, for example, a SQL query issued by a PL/pgSQL function.

The text of a failed internally-generated command .This could be, for example, a SQL query issued by a PL/pgSQL function.

Attributes

Source
PostgresErrorException.scala
def line: Option[Int]

The line number of the source-code location where the error was reported .

The line number of the source-code location where the error was reported .

Attributes

Source
PostgresErrorException.scala
def routine: Option[String]

The name of the source-code routine reporting the error .

The name of the source-code routine reporting the error .

Attributes

Source
PostgresErrorException.scala
def schemaName: Option[String]

If the error was associated with a specific database object, the name of the schema containing that object, if any.

If the error was associated with a specific database object, the name of the schema containing that object, if any.

Attributes

Source
PostgresErrorException.scala
override def sections: List[String]

Attributes

Definition Classes
Source
PostgresErrorException.scala
def severity: String

The field contents are ERROR, FATAL, or PANIC (in an error message), or WARNING, NOTICE, DEBUG, INFO, or LOG (in a notice message), or a localized translation of one of these .Always present.

The field contents are ERROR, FATAL, or PANIC (in an error message), or WARNING, NOTICE, DEBUG, INFO, or LOG (in a notice message), or a localized translation of one of these .Always present.

Attributes

Source
PostgresErrorException.scala
def tableName: Option[String]

If the error was associated with a specific table, the name of the table .(Refer to the schema name field for the name of the table's schema.)

If the error was associated with a specific table, the name of the table .(Refer to the schema name field for the name of the table's schema.)

Attributes

Source
PostgresErrorException.scala
override def title: String

Attributes

Definition Classes
Source
PostgresErrorException.scala
def where: Option[String]

An indication of the context in which the error occurred .Presently this includes a call stack traceback of active procedural language functions and internally-generated queries .The trace is one entry per line, most recent first.

An indication of the context in which the error occurred .Presently this includes a call stack traceback of active procedural language functions and internally-generated queries .The trace is one entry per line, most recent first.

Attributes

Source
PostgresErrorException.scala

Inherited methods

final def addSuppressed(x$0: Throwable): Unit

Attributes

Inherited from:
Throwable
def fillInStackTrace(): Throwable

Attributes

Inherited from:
Throwable
def getCause(): Throwable

Attributes

Inherited from:
Throwable
def getLocalizedMessage(): String

Attributes

Inherited from:
Throwable
final override def getMessage: String

Attributes

Definition Classes
SkunkException -> Throwable
Inherited from:
SkunkException
Source
SkunkException.scala
def getStackTrace(): Array[StackTraceElement]

Attributes

Inherited from:
Throwable
final def getSuppressed(): Array[Throwable]

Attributes

Inherited from:
Throwable
def initCause(x$0: Throwable): Throwable

Attributes

Inherited from:
Throwable
def labeled(label: String, s: String): String

Attributes

Inherited from:
SkunkException
Source
SkunkException.scala
def printStackTrace(x$0: PrintWriter): Unit

Attributes

Inherited from:
Throwable
def printStackTrace(x$0: PrintStream): Unit

Attributes

Inherited from:
Throwable
def printStackTrace(): Unit

Attributes

Inherited from:
Throwable
def setStackTrace(x$0: Array[StackTraceElement]): Unit

Attributes

Inherited from:
Throwable
def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Inherited from:
Throwable

Inherited fields

val callSite: Option[CallSite]

Attributes

Inherited from:
SkunkException
Source
SkunkException.scala
val detail: Option[String]

Attributes

Inherited from:
SkunkException
Source
SkunkException.scala
val hint: Option[String]

Attributes

Inherited from:
SkunkException
Source
SkunkException.scala
val message: String

Attributes

Inherited from:
SkunkException
Source
SkunkException.scala
val position: Option[Int]

Attributes

Inherited from:
SkunkException
Source
SkunkException.scala