org.postgresql.pljava.internal

Class ErrorData


public class ErrorData
extends JavaWrapper

The ErrorData correspons to the ErrorData obtained using an internal PostgreSQL CopyErrorData call.

Method Summary

protected void
_free(long pointer)
Calls the C function pfree() with the given pointer as an argument.
String
getContextMessage()
Returns the context message
int
getCursorPos()
Returns the cursor index into the query string
String
getDetail()
Returns the detailed error message
int
getErrorLevel()
Returns The error level
String
getFilename()
Returns The file where the error occured
String
getFuncname()
Returns the name of the function where the error occured
String
getHint()
Returns the hint message
int
getInternalPos()
Returns the cursor index into internal query
String
getInternalQuery()
Returns the internally-generated query
int
getLineno()
Returns The line where the error occured
String
getMessage()
Returns the primary error message
int
getSavedErrno()
Returns the errno at entry
String
getSqlState()
Returns the unencoded ERRSTATE
boolean
isOutputToClient()
Returns true if the error will be reported to the client
boolean
isOutputToServer()
Returns true if the error will be reported to the server log
boolean
isShowFuncname()
Returns true if funcname inclusion is set

Methods inherited from class org.postgresql.pljava.internal.JavaWrapper

_free, finalize, getNativePointer

Method Details

_free

protected void _free(long pointer)
Calls the C function pfree() with the given pointer as an argument. Subclasses may override this method if special handling is needed when freeing up the object.
Overrides:
_free in interface JavaWrapper
Parameters:
pointer - The pointer to free.

getContextMessage

public String getContextMessage()
Returns the context message

getCursorPos

public int getCursorPos()
Returns the cursor index into the query string

getDetail

public String getDetail()
Returns the detailed error message

getErrorLevel

public int getErrorLevel()
Returns The error level

getFilename

public String getFilename()
Returns The file where the error occured

getFuncname

public String getFuncname()
Returns the name of the function where the error occured

getHint

public String getHint()
Returns the hint message

getInternalPos

public int getInternalPos()
Returns the cursor index into internal query

getInternalQuery

public String getInternalQuery()
Returns the internally-generated query

getLineno

public int getLineno()
Returns The line where the error occured

getMessage

public String getMessage()
Returns the primary error message

getSavedErrno

public int getSavedErrno()
Returns the errno at entry

getSqlState

public String getSqlState()
Returns the unencoded ERRSTATE

isOutputToClient

public boolean isOutputToClient()
Returns true if the error will be reported to the client

isOutputToServer

public boolean isOutputToServer()
Returns true if the error will be reported to the server log

isShowFuncname

public boolean isShowFuncname()
Returns true if funcname inclusion is set

Copyright (c) 2003, 2004, 2005 TADA AB - Taby Sweden. \ Distributed under the terms shown in COPYRIGHT