Exception: Dropmire::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Dropmire::Error
- Defined in:
- lib/dropmire/error/error.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(message = nil, text = nil) ⇒ Error
constructor
A new instance of Error.
- #to_s ⇒ Object
Constructor Details
permalink #initialize(message = nil, text = nil) ⇒ Error
Returns a new instance of Error.
6 7 8 9 10 11 |
# File 'lib/dropmire/error/error.rb', line 6 def initialize(=nil, text=nil) super() @text = text @message = "#{} - #{text}" end |
Instance Attribute Details
permalink #message ⇒ Object (readonly)
Returns the value of attribute message.
4 5 6 |
# File 'lib/dropmire/error/error.rb', line 4 def @message end |
permalink #text ⇒ Object (readonly)
Returns the value of attribute text.
4 5 6 |
# File 'lib/dropmire/error/error.rb', line 4 def text @text end |
Instance Method Details
permalink #to_s ⇒ Object
[View source]
13 14 15 |
# File 'lib/dropmire/error/error.rb', line 13 def to_s "Error: #{@message}" end |