Exception: Veryfi::Error::VeryfiError
- Inherits:
-
StandardError
- Object
- StandardError
- Veryfi::Error::VeryfiError
- Defined in:
- lib/veryfi/error.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(message = "An error occurred", response = {}) ⇒ VeryfiError
constructor
A new instance of VeryfiError.
- #to_s ⇒ Object
Constructor Details
#initialize(message = "An error occurred", response = {}) ⇒ VeryfiError
Returns a new instance of VeryfiError.
18 19 20 21 22 23 24 25 |
# File 'lib/veryfi/error.rb', line 18 def initialize( = "An error occurred", response = {}) @message = if response.empty? else JSON.pretty_generate(response) end super() end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
16 17 18 |
# File 'lib/veryfi/error.rb', line 16 def @message end |
Instance Method Details
#to_s ⇒ Object
27 28 29 |
# File 'lib/veryfi/error.rb', line 27 def to_s end |