Exception: Emailvision::Exception
- Inherits:
-
Exception
- Object
- Exception
- Emailvision::Exception
- Defined in:
- lib/emailvision/exception.rb
Overview
API default exception
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
-
#initializer(http_status, error) ⇒ Object
Initialize.
Instance Attribute Details
#error ⇒ Object
Returns the value of attribute error.
7 8 9 |
# File 'lib/emailvision/exception.rb', line 7 def error @error end |
#http_status ⇒ Object
Returns the value of attribute http_status.
7 8 9 |
# File 'lib/emailvision/exception.rb', line 7 def http_status @http_status end |
Instance Method Details
#initializer(http_status, error) ⇒ Object
Initialize
14 15 16 17 18 19 |
# File 'lib/emailvision/exception.rb', line 14 def initializer(http_status, error) self.http_status = http_status self.error = error super("EMV API returns #{http_status} status code") end |