Exception: Shirtsio::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/shirtsio/error.rb

Overview

Custom error class for rescuing from all known shirts.io errors

Direct Known Subclasses

BadRequest, RequestFailed, Unauthorized

Instance Attribute Summary collapse

Instance Attribute Details

#errorObject

Returns the value of attribute error.



3
4
5
# File 'lib/shirtsio/error.rb', line 3

def error
  @error
end

#resultObject

Returns the value of attribute result.



3
4
5
# File 'lib/shirtsio/error.rb', line 3

def result
  @result
end