MCPcopy Create free account
hub / github.com/apache/iotdb-client-go / isConnectionError

Function isConnectionError

client/tablesessionpool.go:81–94  ·  view source on GitHub ↗

isConnectionError returns true if the error is a connection-level error (i.e., not a server-side execution error indicated by TSStatus).

(err error)

Source from the content-addressed store, hash-verified

79// isConnectionError returns true if the error is a connection-level error
80// (i.e., not a server-side execution error indicated by TSStatus).
81func isConnectionError(err error) bool {
82 if err == nil {
83 return false
84 }
85 var exeErr *ExecutionError
86 if errors.As(err, &exeErr) {
87 return false
88 }
89 var batchErr *BatchError
90 if errors.As(err, &batchErr) {
91 return false
92 }
93 return true
94}
95
96// Insert inserts a Tablet into the database.
97//

Callers 3

InsertMethod · 0.85
ExecuteQueryStatementMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…