class PowerTrack::BasePowerTrackError
Base PowerTrack
error, capable of wrapping another
Attributes
body[R]
status[R]
Public Class Methods
new(status, msg, body=nil)
click to toggle source
Calls superclass method
# File lib/powertrack/errors.rb, line 6 def initialize(status, msg, body=nil) msg ||= body _status = "#{status}".strip _msg = "#{msg}".strip err = [ _status, _msg ].select { |part| !part.empty? }.join(': ') super(err) @status = status @body = body end