Exception: GMO::PG::APIError
- Defined in:
- lib/gmo-pg/error.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#err_code ⇒ Object
readonly
Returns the value of attribute err_code.
-
#err_info ⇒ Object
readonly
Returns the value of attribute err_info.
Instance Method Summary collapse
-
#initialize(message, err_code, err_info) ⇒ APIError
constructor
A new instance of APIError.
Methods inherited from Error
from_api_error, from_http_error
Constructor Details
#initialize(message, err_code, err_info) ⇒ APIError
Returns a new instance of APIError.
63 64 65 66 67 |
# File 'lib/gmo-pg/error.rb', line 63 def initialize(, err_code, err_info) super("#{} (#{err_code}|#{err_info})") @err_code = err_code @err_info = err_info end |
Instance Attribute Details
#err_code ⇒ Object (readonly)
Returns the value of attribute err_code.
61 62 63 |
# File 'lib/gmo-pg/error.rb', line 61 def err_code @err_code end |
#err_info ⇒ Object (readonly)
Returns the value of attribute err_info.
61 62 63 |
# File 'lib/gmo-pg/error.rb', line 61 def err_info @err_info end |