Exception: Bambora::BatchUpload::BatchUploadError
- Inherits:
-
StandardError
- Object
- StandardError
- Bambora::BatchUpload::BatchUploadError
- Defined in:
- lib/bambora/batch_upload/exceptions.rb
Instance Attribute Summary collapse
-
#category ⇒ Object
readonly
Returns the value of attribute category.
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#http_code ⇒ Object
readonly
Returns the value of attribute http_code.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(args) ⇒ BatchUploadError
constructor
A new instance of BatchUploadError.
- #to_s ⇒ Object
Constructor Details
#initialize(args) ⇒ BatchUploadError
Returns a new instance of BatchUploadError.
4 5 6 7 8 9 |
# File 'lib/bambora/batch_upload/exceptions.rb', line 4 def initialize args @code = args[:code] @category = args[:category] @message = args[:message] @http_code = args[:http_code] end |
Instance Attribute Details
#category ⇒ Object (readonly)
Returns the value of attribute category.
3 4 5 |
# File 'lib/bambora/batch_upload/exceptions.rb', line 3 def category @category end |
#code ⇒ Object (readonly)
Returns the value of attribute code.
3 4 5 |
# File 'lib/bambora/batch_upload/exceptions.rb', line 3 def code @code end |
#http_code ⇒ Object (readonly)
Returns the value of attribute http_code.
3 4 5 |
# File 'lib/bambora/batch_upload/exceptions.rb', line 3 def http_code @http_code end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
3 4 5 |
# File 'lib/bambora/batch_upload/exceptions.rb', line 3 def @message end |
Instance Method Details
#to_s ⇒ Object
10 11 12 |
# File 'lib/bambora/batch_upload/exceptions.rb', line 10 def to_s "Code: #{code}, Error Category: #{category}, Message: #{}, HTTP response: #{http_code}" end |