Exception: ThreeScaleToolbox::UnexpectedError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/3scale_toolbox/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(err) ⇒ UnexpectedError

Returns a new instance of UnexpectedError.



62
63
64
# File 'lib/3scale_toolbox/error.rb', line 62

def initialize(err)
  @unexpectederror = err
end

Instance Attribute Details

#unexpectederrorObject (readonly)

Returns the value of attribute unexpectederror.



60
61
62
# File 'lib/3scale_toolbox/error.rb', line 60

def unexpectederror
  @unexpectederror
end

Instance Method Details

#codeObject



74
75
76
# File 'lib/3scale_toolbox/error.rb', line 74

def code
  'E_UNKNOWN'
end

#kindObject



70
71
72
# File 'lib/3scale_toolbox/error.rb', line 70

def kind
  unexpectederror.class
end

#messageObject



66
67
68
# File 'lib/3scale_toolbox/error.rb', line 66

def message
  unexpectederror.message
end

#stacktraceObject



78
79
80
# File 'lib/3scale_toolbox/error.rb', line 78

def stacktrace
  unexpectederror.backtrace
end