Documentation of 'org.apache.derby.client.am.SqlException' Java class
SqlException
org.apache.derby.client.am

Class SqlException

    • Field Detail

      • CLIENT_MESSAGE_RESOURCE_NAME

        public static final java.lang.String CLIENT_MESSAGE_RESOURCE_NAME
        See Also:
        Constant Field Values
    • Constructor Detail

      • SqlException

        public SqlException(LogWriter logWriter,
                            ClientMessageId msgid,
                            java.lang.Throwable cause,
                            java.lang.Object... args)
      • SqlException

        public SqlException(LogWriter logWriter,
                            Sqlca sqlca)
        Create an exception for an engine generated error.
        Parameters:
        logWriter - object used for tracing
        sqlca - the SQLCA sent from the server
      • SqlException

        public SqlException(java.sql.SQLException wrapme)
        Wrap a SQLException in a SqlException. This is used by internal routines so the don't have to throw SQLException, which, through the chain of dependencies would force more and more internal routines to throw SQLException
    • Method Detail

      • getMessageUtil

        public static MessageUtil getMessageUtil()
        This routine provides singleton access to an instance of MessageUtil that is constructed for client messages. It is recommended to use this singleton rather than create your own instance. The only time you need this instance is if you need to directly format an internationalized message string. In most instances this is done for you when you invoke a SqlException constructor
        Returns:
        a singleton instance of MessageUtil configured for client messages
      • getSQLException

        public java.sql.SQLException getSQLException()
        Convert this SqlException into a java.sql.SQLException
      • getSqlca

        public Sqlca getSqlca()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Throwable
      • getMessage

        public java.lang.String getMessage()
        Overrides:
        getMessage in class java.lang.Throwable
      • getSQLState

        public java.lang.String getSQLState()
      • getErrorCode

        public int getErrorCode()
      • setNextException

        public void setNextException(SqlException nextException)
      • setNextException

        public void setNextException(java.sql.SQLException nextException)

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.