Exception: CloudSQLRubyConnector::Error
- Inherits:
-
StandardError
- Object
- StandardError
- CloudSQLRubyConnector::Error
- Defined in:
- lib/cloud_sql_ruby_connector/errors.rb
Overview
Base error class for all Cloud SQL Connector errors
Direct Known Subclasses
AuthenticationError, ConfigurationError, ConnectionError, IpAddressError
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(message, code: nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message, code: nil) ⇒ Error
Returns a new instance of Error.
22 23 24 25 |
# File 'lib/cloud_sql_ruby_connector/errors.rb', line 22 def initialize(, code: nil) @code = code super() end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
20 21 22 |
# File 'lib/cloud_sql_ruby_connector/errors.rb', line 20 def code @code end |