Class SnowflakeSQLLoggedException

  • All Implemented Interfaces:
    Serializable, Iterable<Throwable>

    public class SnowflakeSQLLoggedException
    extends SnowflakeSQLException
    Author:
    mknister

    This SnowflakeSQLLoggedException class extends the SnowflakeSQLException class to add OOB telemetry data for sql exceptions. Not all sql exceptions require OOB telemetry logging so the exceptions in this class should only be thrown if there is a need for logging the exception with OOB telemetry.

    See Also:
    Serialized Form
    • Method Detail

      • sendTelemetryData

        public static void sendTelemetryData​(String queryId,
                                             String SQLState,
                                             int vendorCode,
                                             SFBaseSession session,
                                             SQLException ex)
        Function to construct log data based on possible exception inputs and send data through in-band telemetry, or oob if in-band does not work
        Parameters:
        queryId - query ID if exists
        SQLState - SQLState
        vendorCode - vendor code
        session - session object, which is needed to send in-band telemetry but not oob. Might be null, in which case oob is used.
        ex - Exception object