Package org.postgresql.util
Class PSQLWarning
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.sql.SQLException
-
- java.sql.SQLWarning
-
- org.postgresql.util.PSQLWarning
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Iterable<java.lang.Throwable>
public class PSQLWarning extends java.sql.SQLWarning- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private ServerErrorMessageserverError
-
Constructor Summary
Constructors Constructor Description PSQLWarning(ServerErrorMessage err)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ThrowablefillInStackTrace()A server warning is not raised by the driver, so the stack of the thread that read it is not recorded.java.lang.StringgetMessage()ServerErrorMessagegetServerErrorMessage()-
Methods inherited from class java.sql.SQLException
getErrorCode, getNextException, getSQLState, iterator, setNextException
-
Methods inherited from class java.lang.Throwable
addSuppressed, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
serverError
private final ServerErrorMessage serverError
-
-
Constructor Detail
-
PSQLWarning
public PSQLWarning(ServerErrorMessage err)
-
-
Method Detail
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessagein classjava.lang.Throwable
-
getServerErrorMessage
public ServerErrorMessage getServerErrorMessage()
-
fillInStackTrace
public java.lang.Throwable fillInStackTrace()
A server warning is not raised by the driver, so the stack of the thread that read it is not recorded. The server can send any number of notices.- Overrides:
fillInStackTracein classjava.lang.Throwable
-
-