Method: Calendly::Error#initialize
- Defined in:
- lib/calendly/error.rb
#initialize(message = nil) ⇒ Error
Returns a new instance of Error.
10 11 12 13 14 15 16 17 |
# File 'lib/calendly/error.rb', line 10 def initialize( = nil) @logger = Calendly.configuration.logger msg = "#{self.class} occured." msg += " status:#{status}" if respond_to?(:status) msg += " message:#{}" warn_log msg super end |