Class: GMO::PG::Errors::Error
- Inherits:
-
Struct
- Object
- Struct
- GMO::PG::Errors::Error
- Defined in:
- lib/gmo-pg/http_resource/errors.rb
Instance Attribute Summary collapse
-
#err_code ⇒ Object
Returns the value of attribute err_code.
-
#err_info ⇒ Object
Returns the value of attribute err_info.
Instance Method Summary collapse
Instance Attribute Details
#err_code ⇒ Object
Returns the value of attribute err_code
4 5 6 |
# File 'lib/gmo-pg/http_resource/errors.rb', line 4 def err_code @err_code end |
#err_info ⇒ Object
Returns the value of attribute err_info
4 5 6 |
# File 'lib/gmo-pg/http_resource/errors.rb', line 4 def err_info @err_info end |
Instance Method Details
#to_error ⇒ Object
5 6 7 |
# File 'lib/gmo-pg/http_resource/errors.rb', line 5 def to_error GMO::PG::Error.from_api_error(err_code, err_info) end |