java.lang.Object
org.postgresql.pljava.internal.ErrorData
The
ErrorData
correspons to the ErrorData obtained
using an internal PostgreSQL CopyErrorData
call.- Author:
- Thomas Hallgren
-
Method Summary
Modifier and TypeMethodDescriptionReturns the context messageint
Returns the cursor index into the query stringReturns the detailed error messageint
Returns The error levelReturns The file where the error occurredReturns the name of the function where the error occurredgetHint()
Returns the hint messageint
Returns the cursor index into internal queryReturns the internally-generated queryint
Returns The line where the error occurredReturns the primary error messageint
Returns the errno at entryReturns the unencoded ERRSTATEboolean
Returns true if the error will be reported to the clientboolean
Returns true if the error will be reported to the server logboolean
Deprecated.The property queried by this method was only used in PostgreSQL when communicating with old clients over the v2 frontend/backend protocol, superseded in PostgreSQL 7.4.
-
Method Details
-
getErrorLevel
public int getErrorLevel()Returns The error level -
isOutputToServer
public boolean isOutputToServer()Returns true if the error will be reported to the server log -
isOutputToClient
public boolean isOutputToClient()Returns true if the error will be reported to the client -
isShowFuncname
Deprecated.The property queried by this method was only used in PostgreSQL when communicating with old clients over the v2 frontend/backend protocol, superseded in PostgreSQL 7.4. In PG 14 and later, there is no such property, and this method will always return false.Returns true if funcname inclusion is set -
getFilename
Returns The file where the error occurred -
getLineno
public int getLineno()Returns The line where the error occurred -
getFuncname
Returns the name of the function where the error occurred -
getSqlState
Returns the unencoded ERRSTATE -
getMessage
Returns the primary error message -
getDetail
Returns the detailed error message -
getHint
Returns the hint message -
getContextMessage
Returns the context message -
getCursorPos
public int getCursorPos()Returns the cursor index into the query string -
getInternalPos
public int getInternalPos()Returns the cursor index into internal query -
getInternalQuery
Returns the internally-generated query -
getSavedErrno
public int getSavedErrno()Returns the errno at entry
-