Module: InkFilePicker::ErrorWithOriginal
- Included in:
- ClientError, ServerError
- Defined in:
- lib/ink_file_picker/errors.rb
Instance Attribute Summary collapse
-
#msg ⇒ Object
readonly
Returns the value of attribute msg.
-
#related ⇒ Object
readonly
Returns the value of attribute related.
Instance Method Summary collapse
- #initialize(msg, related) ⇒ Object
- #to_s ⇒ Object (also: #inspect)
Instance Attribute Details
#msg ⇒ Object (readonly)
Returns the value of attribute msg.
3 4 5 |
# File 'lib/ink_file_picker/errors.rb', line 3 def msg @msg end |
#related ⇒ Object (readonly)
Returns the value of attribute related.
3 4 5 |
# File 'lib/ink_file_picker/errors.rb', line 3 def @related end |
Instance Method Details
#initialize(msg, related) ⇒ Object
5 6 7 8 |
# File 'lib/ink_file_picker/errors.rb', line 5 def initialize(msg, ) @msg = msg @related = end |
#to_s ⇒ Object Also known as: inspect
10 11 12 |
# File 'lib/ink_file_picker/errors.rb', line 10 def to_s "#{self.class.name}: Message: '#{msg}'. Related object: '#{.inspect}'." end |