ERRPacket

ldbc.connector.net.packet.response.ERRPacket
See theERRPacket companion object
case class ERRPacket(status: Int, errorCode: Int, sqlStateMarker: Int, sqlState: Option[String], errorMessage: String) extends GenericResponsePackets

This packet signals that an error occurred.

It contains a SQL state value if CLIENT_PROTOCOL_41 is enabled.

Error texts cannot exceed MYSQL_ERRMSG_SIZE

Value parameters

errorCode

Type: int<2> Name: error_code Description: error-code

errorMessage

Type: string Name: error_message Description: human readable error message

sqlState

Type: string<5> Name: sql_state Description: SQL state

sqlStateMarker

Type: string<1> Name: sql_state_marker Description: # marker of the SQL state

status

Type: int<1> Name: header Description: 0xFF ERR packet header

Attributes

Companion
object
Source
ERRPacket.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Packet
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

Attributes

Source
ERRPacket.scala

Attributes

Source
ERRPacket.scala

Attributes

Source
ERRPacket.scala
def toException(message: String, sql: String): SQLException

Attributes

Source
ERRPacket.scala
def toException(message: String, updateCounts: Vector[Long]): SQLException

Attributes

Source
ERRPacket.scala
override 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.

Definition Classes
Any
Source
ERRPacket.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product