Package errtype provides a number of concrete types which are used by the
cloudsqlconn package.
ConfigError
typeConfigErrorstruct{// contains filtered or unexported fields}
ConfigError represents an incorrect request by the user. Config errors
usually indicate a semantic error (e.g., the instance connection name is
malformated, the SQL instance does not support the requested IP type, etc.)
typeDialErrorstruct{// Err is the underlying error and may be nil.Errerror// contains filtered or unexported fields}
DialError represents a problem that occurred when trying to dial a SQL
instance (e.g., a failure to set the keep-alive property, a TLS handshake
failure, a missing certificate, etc.)
typeRefreshErrorstruct{// Err is the underlying error and may be nil.Errerror// contains filtered or unexported fields}
RefreshError means that an error occurred during the background
refresh operation. In general, this is an unexpected error caused by
an interaction with the API itself (e.g., missing certificates,
invalid certificate encoding, region mismatch with the requested
instance connection name, etc.).
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-05 UTC."],[[["\u003cp\u003eThe webpage provides documentation for the \u003ccode\u003eerrtype\u003c/code\u003e package, which is part of the \u003ccode\u003ecloudsqlconn\u003c/code\u003e package in the Go programming language.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eerrtype\u003c/code\u003e package defines three primary error types: \u003ccode\u003eConfigError\u003c/code\u003e, \u003ccode\u003eDialError\u003c/code\u003e, and \u003ccode\u003eRefreshError\u003c/code\u003e, each representing different categories of issues that can occur during cloud SQL connection operations.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eConfigError\u003c/code\u003e is for errors in user requests, \u003ccode\u003eDialError\u003c/code\u003e indicates problems during the dial operation, and \u003ccode\u003eRefreshError\u003c/code\u003e is for issues during the background refresh operation.\u003c/p\u003e\n"],["\u003cp\u003eThe page lists multiple versions of the \u003ccode\u003eerrtype\u003c/code\u003e package, with the latest being version 1.16.0, and provides links to the documentation for each version.\u003c/p\u003e\n"],["\u003cp\u003eEach error type (\u003ccode\u003eConfigError\u003c/code\u003e, \u003ccode\u003eDialError\u003c/code\u003e, \u003ccode\u003eRefreshError\u003c/code\u003e) has associated functions for initialization (\u003ccode\u003eNewConfigError\u003c/code\u003e, \u003ccode\u003eNewDialError\u003c/code\u003e, \u003ccode\u003eNewRefreshError\u003c/code\u003e) as well as error handling methods such as \u003ccode\u003eError\u003c/code\u003e and \u003ccode\u003eUnwrap\u003c/code\u003e for \u003ccode\u003eDialError\u003c/code\u003e and \u003ccode\u003eRefreshError\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]