Exception: Dialers::ErrorAsErrorProxy

Inherits:
StandardError
  • Object
show all
Defined in:
lib/dialers/errors.rb

Direct Known Subclasses

ParsingError, UnreachableError

Instance Method Summary collapse

Constructor Details

#initialize(error = nil) ⇒ ErrorAsErrorProxy


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

def initialize(error = nil)
  self.error = error
end

Instance Method Details

#messageObject


7
8
9
# File 'lib/dialers/errors.rb', line 7

def message
  error ? error.message : super
end