Module: InkFilePicker::ErrorWithOriginal

Included in:
ClientError, ServerError
Defined in:
lib/ink_file_picker/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#msgObject (readonly)

Returns the value of attribute msg.



3
4
5
# File 'lib/ink_file_picker/errors.rb', line 3

def msg
  @msg
end

Returns the value of attribute related.



3
4
5
# File 'lib/ink_file_picker/errors.rb', line 3

def related
  @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, related)
  @msg = msg
  @related = related
end

#to_sObject 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: '#{related.inspect}'."
end