Exception: Emailvision::Exception
- Inherits:
-
Exception
- Object
- Exception
- Emailvision::Exception
- Defined in:
- lib/emailvision/exception.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
Returns the value of attribute error.
-
#http_status ⇒ Object
Returns the value of attribute http_status.
Instance Method Summary collapse
Instance Attribute Details
#error ⇒ Object
Returns the value of attribute error.
4 5 6 |
# File 'lib/emailvision/exception.rb', line 4 def error @error end |
#http_status ⇒ Object
Returns the value of attribute http_status.
4 5 6 |
# File 'lib/emailvision/exception.rb', line 4 def http_status @http_status end |
Instance Method Details
#initializer(http_status, error) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/emailvision/exception.rb', line 6 def initializer(http_status, error) self.http_status = http_status self.error = error super("EMV API returns #{http_status} status code") end |