Exception: BigcommerceAPI::Error
- Inherits:
-
StandardError
- Object
- StandardError
- BigcommerceAPI::Error
- Defined in:
- lib/bigcommerce_api/error.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code, message) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(code, message) ⇒ Error
Returns a new instance of Error.
4 5 6 7 |
# File 'lib/bigcommerce_api/error.rb', line 4 def initialize(code, ) @code = code super() end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
3 4 5 |
# File 'lib/bigcommerce_api/error.rb', line 3 def code @code end |