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 an AlloyDB
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 URI, 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 latest version of the \u003ccode\u003eerrtype\u003c/code\u003e package for \u003ccode\u003ecloud.google.com/go/alloydbconn\u003c/code\u003e is 1.15.0, with a history of older versions available.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eerrtype\u003c/code\u003e package provides concrete error types used within the \u003ccode\u003ealloydbconn\u003c/code\u003e package, such as \u003ccode\u003eConfigError\u003c/code\u003e, \u003ccode\u003eDialError\u003c/code\u003e, and \u003ccode\u003eRefreshError\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eConfigError\u003c/code\u003e signifies an incorrect user request, often due to a semantic error like a malformed instance URI.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eDialError\u003c/code\u003e represents issues during the connection process to an AlloyDB instance, like TLS handshake failures.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eRefreshError\u003c/code\u003e indicates a problem with the background refresh operation, usually related to API interactions like missing or invalid certificates.\u003c/p\u003e\n"]]],[],null,["# Package cloud.google.com/go/alloydbconn/errtype (v1.15.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.15.1 (latest)](/go/docs/reference/cloud.google.com/go/alloydbconn/latest/errtype)\n- [1.15.0](/go/docs/reference/cloud.google.com/go/alloydbconn/1.15.0/errtype)\n- [1.14.1](/go/docs/reference/cloud.google.com/go/alloydbconn/1.14.1/errtype)\n- [1.13.2](/go/docs/reference/cloud.google.com/go/alloydbconn/1.13.2/errtype)\n- [1.12.1](/go/docs/reference/cloud.google.com/go/alloydbconn/1.12.1/errtype)\n- [1.11.1](/go/docs/reference/cloud.google.com/go/alloydbconn/1.11.1/errtype)\n- [1.10.0](/go/docs/reference/cloud.google.com/go/alloydbconn/1.10.0/errtype)\n- [1.9.0](/go/docs/reference/cloud.google.com/go/alloydbconn/1.9.0/errtype)\n- [1.8.0](/go/docs/reference/cloud.google.com/go/alloydbconn/1.8.0/errtype)\n- [1.7.0](/go/docs/reference/cloud.google.com/go/alloydbconn/1.7.0/errtype)\n- [1.6.0](/go/docs/reference/cloud.google.com/go/alloydbconn/1.6.0/errtype)\n- [1.5.2](/go/docs/reference/cloud.google.com/go/alloydbconn/1.5.2/errtype)\n- [1.4.0](/go/docs/reference/cloud.google.com/go/alloydbconn/1.4.0/errtype)\n- [1.3.3](/go/docs/reference/cloud.google.com/go/alloydbconn/1.3.3/errtype)\n- [1.2.2](/go/docs/reference/cloud.google.com/go/alloydbconn/1.2.2/errtype)\n- [1.1.0](/go/docs/reference/cloud.google.com/go/alloydbconn/1.1.0/errtype)\n- [1.0.0](/go/docs/reference/cloud.google.com/go/alloydbconn/1.0.0/errtype)\n- [0.4.0](/go/docs/reference/cloud.google.com/go/alloydbconn/0.4.0/errtype)\n- [0.3.1](/go/docs/reference/cloud.google.com/go/alloydbconn/0.3.1/errtype)\n- [0.2.2](/go/docs/reference/cloud.google.com/go/alloydbconn/0.2.2/errtype)\n- [0.1.1](/go/docs/reference/cloud.google.com/go/alloydbconn/0.1.1/errtype) \n**Note:** To get more information about this package, such as access to older versions, view [this package on pkg.go.dev](https://pkg.go.dev/cloud.google.com/go/alloydbconn/errtype). \n\u003cbr /\u003e\n\nPackage errtype provides a number of concrete types which are used by the\nalloydbconn package. \n\nConfigError\n-----------\n\n type ConfigError struct {\n \t// contains filtered or unexported fields\n }\n\nConfigError represents an incorrect request by the user. Config errors\nusually indicate a semantic error (e.g., the instance URI is\nmalformated, etc). \n\n### func NewConfigError\n\n func NewConfigError(msg, cn https://pkg.go.dev/builtin#string) *#cloud_google_com_go_alloydbconn_errtype_ConfigError\n\nNewConfigError initializes a ConfigError. \n\n### func (ConfigError) Error\n\n func (e #cloud_google_com_go_alloydbconn_errtype_ConfigError) Error() https://pkg.go.dev/builtin#string\n\nDialError\n---------\n\n type DialError struct {\n\n \t// Err is the underlying error and may be nil.\n \tErr https://pkg.go.dev/builtin#error\n \t// contains filtered or unexported fields\n }\n\nDialError represents a problem that occurred when trying to dial an AlloyDB\ninstance (e.g., a failure to set the keep-alive property, a TLS handshake\nfailure, a missing certificate, etc.) \n\n### func NewDialError\n\n func NewDialError(msg, cn https://pkg.go.dev/builtin#string, err https://pkg.go.dev/builtin#error) *#cloud_google_com_go_alloydbconn_errtype_DialError\n\nNewDialError initializes a DialError. \n\n### func (\\*DialError) Error\n\n func (e *#cloud_google_com_go_alloydbconn_errtype_DialError) Error() https://pkg.go.dev/builtin#string\n\n### func (\\*DialError) Unwrap\n\n func (e *#cloud_google_com_go_alloydbconn_errtype_DialError) Unwrap() https://pkg.go.dev/builtin#error\n\nRefreshError\n------------\n\n type RefreshError struct {\n\n \t// Err is the underlying error and may be nil.\n \tErr https://pkg.go.dev/builtin#error\n \t// contains filtered or unexported fields\n }\n\nRefreshError means that an error occurred during the background\nrefresh operation. In general, this is an unexpected error caused by\nan interaction with the API itself (e.g., missing certificates,\ninvalid certificate encoding, region mismatch with the requested\ninstance URI, etc.). \n\n### func NewRefreshError\n\n func NewRefreshError(msg, cn https://pkg.go.dev/builtin#string, err https://pkg.go.dev/builtin#error) *#cloud_google_com_go_alloydbconn_errtype_RefreshError\n\nNewRefreshError initializes a RefreshError. \n\n### func (\\*RefreshError) Error\n\n func (e *#cloud_google_com_go_alloydbconn_errtype_RefreshError) Error() https://pkg.go.dev/builtin#string\n\n### func (\\*RefreshError) Unwrap\n\n func (e *#cloud_google_com_go_alloydbconn_errtype_RefreshError) Unwrap() https://pkg.go.dev/builtin#error"]]