Class SnowflakeSQLException

    • Constructor Detail

      • SnowflakeSQLException

        public SnowflakeSQLException​(String queryId,
                                     String reason,
                                     String sqlState,
                                     int vendorCode)
        This constructor should only be used for error from Global service. Since Global service has already built the error message, we use it as is. For any errors local to JDBC driver, we should use one of the constructors below to build the error message.
        Parameters:
        queryId - query id
        reason - reason for which exception is created
        sqlState - sql state
        vendorCode - vendor code
      • SnowflakeSQLException

        public SnowflakeSQLException​(String reason,
                                     String SQLState)
      • SnowflakeSQLException

        public SnowflakeSQLException​(String sqlState,
                                     int vendorCode)
      • SnowflakeSQLException

        public SnowflakeSQLException​(String sqlState,
                                     int vendorCode,
                                     Object... params)
      • SnowflakeSQLException

        public SnowflakeSQLException​(Throwable ex,
                                     String sqlState,
                                     int vendorCode)
      • SnowflakeSQLException

        public SnowflakeSQLException​(Throwable ex,
                                     String sqlState,
                                     int vendorCode,
                                     Object... params)
      • SnowflakeSQLException

        public SnowflakeSQLException​(ErrorCode errorCode,
                                     Object... params)
      • SnowflakeSQLException

        public SnowflakeSQLException​(ErrorCode errorCode,
                                     int retryCount,
                                     boolean issocketTimeoutNoBackoff,
                                     long elapsedSeconds)
      • SnowflakeSQLException

        public SnowflakeSQLException​(SFException e)
      • SnowflakeSQLException

        public SnowflakeSQLException​(String reason)
    • Method Detail

      • getQueryId

        public String getQueryId()
      • getRetryCount

        public int getRetryCount()
      • issocketTimeoutNoBackoff

        public boolean issocketTimeoutNoBackoff()
      • getElapsedSeconds

        public long getElapsedSeconds()