- java.lang.Object
-
- org.postgresql.pljava.internal.ErrorData
-
public class ErrorData extends Object
TheErrorData
correspons to the ErrorData obtained using an internal PostgreSQLCopyErrorData
call.- Author:
- Thomas Hallgren
-
-
Method Summary
Modifier and Type Method Description String
getContextMessage()
Returns the context messageint
getCursorPos()
Returns the cursor index into the query stringString
getDetail()
Returns the detailed error messageint
getErrorLevel()
Returns The error levelString
getFilename()
Returns The file where the error occurredString
getFuncname()
Returns the name of the function where the error occurredString
getHint()
Returns the hint messageint
getInternalPos()
Returns the cursor index into internal queryString
getInternalQuery()
Returns the internally-generated queryint
getLineno()
Returns The line where the error occurredString
getMessage()
Returns the primary error messageint
getSavedErrno()
Returns the errno at entryString
getSqlState()
Returns the unencoded ERRSTATEboolean
isOutputToClient()
Returns true if the error will be reported to the clientboolean
isOutputToServer()
Returns true if the error will be reported to the server logboolean
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.
-
-
-
Method Detail
-
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 public boolean 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
public String getFilename()
Returns The file where the error occurred
-
getLineno
public int getLineno()
Returns The line where the error occurred
-
getFuncname
public String getFuncname()
Returns the name of the function where the error occurred
-
getSqlState
public String getSqlState()
Returns the unencoded ERRSTATE
-
getMessage
public String getMessage()
Returns the primary error message
-
getDetail
public String getDetail()
Returns the detailed error message
-
getHint
public String getHint()
Returns the hint message
-
getContextMessage
public String 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
public String getInternalQuery()
Returns the internally-generated query
-
getSavedErrno
public int getSavedErrno()
Returns the errno at entry
-
-