Package cloud.google.com/go/cloudsqlconn/errtypes (v0.1.0)

Package errtypes provides a number of concrete types which are used by the cloudsqlconn package.

ConfigError

  type 
  
 ConfigError 
  
 struct 
  
 { 
  
 // 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.)

func NewConfigError

  func 
  
 NewConfigError 
 ( 
 msg 
 , 
  
 cn 
  
  string 
 
 ) 
  
 * 
  ConfigError 
 
 

NewConfigError initializes a ConfigError.

func (ConfigError) Error

  func 
  
 ( 
 e 
  
  ConfigError 
 
 ) 
  
 Error 
 () 
  
  string 
 
 

DialError

  type 
  
 DialError 
  
 struct 
  
 { 
  
 // Err is the underlying error and may be nil. 
  
 Err 
  
  error 
 
  
 // 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.)

func NewDialError

  func 
  
 NewDialError 
 ( 
 msg 
 , 
  
 cn 
  
  string 
 
 , 
  
 err 
  
  error 
 
 ) 
  
 * 
  DialError 
 
 

NewDialError initializes a DialError.

func (*DialError) Error

  func 
  
 ( 
 e 
  
 * 
  DialError 
 
 ) 
  
 Error 
 () 
  
  string 
 
 

func (*DialError) Unwrap

  func 
  
 ( 
 e 
  
 * 
  DialError 
 
 ) 
  
 Unwrap 
 () 
  
  error 
 
 

RefreshError

  type 
  
 RefreshError 
  
 struct 
  
 { 
  
 // Err is the underlying error and may be nil. 
  
 Err 
  
  error 
 
  
 // 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.).

func NewRefreshError

  func 
  
 NewRefreshError 
 ( 
 msg 
 , 
  
 cn 
  
  string 
 
 , 
  
 err 
  
  error 
 
 ) 
  
 * 
  RefreshError 
 
 

NewRefreshError initializes a RefreshError.

func (*RefreshError) Error

  func 
  
 ( 
 e 
  
 * 
  RefreshError 
 
 ) 
  
 Error 
 () 
  
  string 
 
 

func (*RefreshError) Unwrap

  func 
  
 ( 
 e 
  
 * 
  RefreshError 
 
 ) 
  
 Unwrap 
 () 
  
  error 
 
 
Create a Mobile Website
View Site in Mobile | Classic
Share by: