Exception: EventBright::Error
- Inherits:
-
Exception
- Object
- Exception
- EventBright::Error
- Defined in:
- lib/eventbright/error.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
Returns the value of attribute message.
-
#response ⇒ Object
Returns the value of attribute response.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(message, type = "", response = nil) ⇒ Error
constructor
A new instance of Error.
- #inspect ⇒ Object
Constructor Details
#initialize(message, type = "", response = nil) ⇒ Error
Returns a new instance of Error.
4 5 6 7 8 9 |
# File 'lib/eventbright/error.rb', line 4 def initialize(, type = "", response = nil) @type = type @response = response @message = super() end |
Instance Attribute Details
#message ⇒ Object
Returns the value of attribute message.
3 4 5 |
# File 'lib/eventbright/error.rb', line 3 def @message end |
#response ⇒ Object
Returns the value of attribute response.
3 4 5 |
# File 'lib/eventbright/error.rb', line 3 def response @response end |
#type ⇒ Object
Returns the value of attribute type.
3 4 5 |
# File 'lib/eventbright/error.rb', line 3 def type @type end |
Instance Method Details
#inspect ⇒ Object
10 11 12 |
# File 'lib/eventbright/error.rb', line 10 def inspect "<EventBright::Error(#{type}): #{}>" end |