Top Description Fields Constructors Methods
com.mysql.cj.protocol.x

public Class XProtocolError

extends CJException
Class Inheritance
Imports
com.mysql.cj.exceptions.CJException, com.mysql.cj.x.protobuf.Mysqlx.Error

An Error returned from X Plugin.

Field Summary

Modifier and TypeField and Description
private Mysqlx.Error
msg

The error message returned from the server.

private static final long
Inherited from com.mysql.cj.exceptions.CJException:
exceptionMessage

Constructor Summary

AccessConstructor and Description
public
public
public
XProtocolError(XProtocolError fromOtherThread)

public

Method Summary

Modifier and TypeMethod and Description
public int
private static String

Returns:

string error message
getFullErrorDescription
(Mysqlx.Error msg)

Format the error message's contents into a complete error description for the exception.

public String
Inherited from com.mysql.cj.exceptions.CJException:
appendMessagegetMessagegetVendorCodeisTransientsetSQLStatesetTransientsetVendorCode

Field Detail

msgback to summary
private Mysqlx.Error msg

The error message returned from the server.

serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.mysql.cj.exceptions.CJException.serialVersionUID.

Constructor Detail

XProtocolErrorback to summary
public XProtocolError(String message)
XProtocolErrorback to summary
public XProtocolError(Mysqlx.Error msg)
XProtocolErrorback to summary
public XProtocolError(XProtocolError fromOtherThread)
XProtocolErrorback to summary
public XProtocolError(String message, Throwable t)

Method Detail

getErrorCodeback to summary
public int getErrorCode()
getFullErrorDescriptionback to summary
private static String getFullErrorDescription(Mysqlx.Error msg)

Format the error message's contents into a complete error description for the exception.

Parameters
msg:Mysqlx.Error

Error

Returns:String

string error message

getSQLStateback to summary
public String getSQLState()

Overrides com.mysql.cj.exceptions.CJException.getSQLState.

Annotations
@Override