Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.postgresql.util
Class PSQLException  view PSQLException download PSQLException.java

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.sql.SQLException
              extended byorg.postgresql.util.PSQLException
All Implemented Interfaces:
java.io.Serializable

public class PSQLException
extends java.sql.SQLException

This class extends SQLException, and provides our internationalisation handling


Nested Class Summary
 
Nested classes inherited from class java.lang.Throwable
 
Field Summary
(package private) static java.util.ResourceBundle bundle
           
private  java.lang.String message
           
 
Fields inherited from class java.sql.SQLException
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
PSQLException(java.lang.String error)
          This provides the same functionality to SQLException
PSQLException(java.lang.String error, java.lang.Object arg)
          Helper version for 1 arg
PSQLException(java.lang.String error, java.lang.Object[] args)
          A more generic entry point.
PSQLException(java.lang.String error, java.lang.Object arg1, java.lang.Object arg2)
          Helper version for 2 args
 
Method Summary
 java.lang.String getLocalizedMessage()
          Overides Throwable
 java.lang.String getMessage()
          Overides Throwable
 java.lang.String toString()
          Overides Object
private  void translate(java.lang.String id, java.lang.Object[] args)
          This does the actual translation
 
Methods inherited from class java.sql.SQLException
getErrorCode, getNextException, getSQLState, setNextException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

message

private java.lang.String message

bundle

static java.util.ResourceBundle bundle
Constructor Detail

PSQLException

public PSQLException(java.lang.String error)
This provides the same functionality to SQLException


PSQLException

public PSQLException(java.lang.String error,
                     java.lang.Object[] args)
A more generic entry point.


PSQLException

public PSQLException(java.lang.String error,
                     java.lang.Object arg)
Helper version for 1 arg


PSQLException

public PSQLException(java.lang.String error,
                     java.lang.Object arg1,
                     java.lang.Object arg2)
Helper version for 2 args

Method Detail

translate

private void translate(java.lang.String id,
                       java.lang.Object[] args)
This does the actual translation


getLocalizedMessage

public java.lang.String getLocalizedMessage()
Overides Throwable


getMessage

public java.lang.String getMessage()
Overides Throwable


toString

public java.lang.String toString()
Overides Object