Exception: Calendly::Error

Inherits:
StandardError
  • Object
show all
Includes:
Loggable
Defined in:
lib/calendly/error.rb

Overview

calendly module’s base error object

Direct Known Subclasses

ApiError

Instance Method Summary collapse

Methods included from Loggable

#debug_log, #error_log, #info_log, #warn_log

Constructor Details

#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(message = nil)
  @logger = Calendly.configuration.logger
  msg = "#{self.class} occured."
  msg += " status:#{status}" if respond_to?(:status)
  msg += " message:#{message}"
  warn_log msg
  super message
end