public class SnowflakeSQLLoggedException extends SnowflakeSQLException
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.
Constructor and Description |
---|
SnowflakeSQLLoggedException(SFBaseSession session,
ErrorCode errorCode,
Object... params) |
SnowflakeSQLLoggedException(SFBaseSession session,
ErrorCode errorCode,
Throwable ex,
Object... params) |
SnowflakeSQLLoggedException(SFBaseSession session,
int vendorCode,
String SQLState) |
SnowflakeSQLLoggedException(SFBaseSession session,
int vendorCode,
String SQLState,
Object... params) |
SnowflakeSQLLoggedException(SFBaseSession session,
SFException e) |
SnowflakeSQLLoggedException(SFBaseSession session,
String reason) |
SnowflakeSQLLoggedException(SFBaseSession session,
String SQLState,
int vendorCode,
Throwable ex,
Object... params) |
SnowflakeSQLLoggedException(SFBaseSession session,
String SQLState,
String reason) |
SnowflakeSQLLoggedException(SFBaseSession session,
String reason,
String SQLState,
int vendorCode,
String queryId) |
Modifier and Type | Method and Description |
---|---|
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
|
getElapsedSeconds, getQueryId, getRetryCount, issocketTimeoutNoBackoff
getErrorCode, getNextException, getSQLState, iterator, setNextException
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public SnowflakeSQLLoggedException(SFBaseSession session, String reason, String SQLState, int vendorCode, String queryId)
public SnowflakeSQLLoggedException(SFBaseSession session, int vendorCode, String SQLState)
public SnowflakeSQLLoggedException(SFBaseSession session, String SQLState, String reason)
public SnowflakeSQLLoggedException(SFBaseSession session, int vendorCode, String SQLState, Object... params)
public SnowflakeSQLLoggedException(SFBaseSession session, ErrorCode errorCode, Throwable ex, Object... params)
public SnowflakeSQLLoggedException(SFBaseSession session, String SQLState, int vendorCode, Throwable ex, Object... params)
public SnowflakeSQLLoggedException(SFBaseSession session, ErrorCode errorCode, Object... params)
public SnowflakeSQLLoggedException(SFBaseSession session, SFException e)
public SnowflakeSQLLoggedException(SFBaseSession session, String reason)
public static void sendTelemetryData(String queryId, String SQLState, int vendorCode, SFBaseSession session, SQLException ex)
queryId
- query ID if existsSQLState
- SQLStatevendorCode
- vendor codesession
- session object, which is needed to send in-band telemetry but not oob. Might be
null, in which case oob is used.ex
- Exception objectCopyright © 2022. All rights reserved.