Exception: Calendly::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Calendly::Error
- Includes:
- Loggable
- Defined in:
- lib/calendly/error.rb
Overview
calendly module’s base error object
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(message = nil) ⇒ Error
constructor
A new instance of Error.
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( = nil) @logger = Calendly.configuration.logger msg = "#{self.class} occured." msg += " status:#{status}" if respond_to?(:status) msg += " message:#{}" warn_log msg super end |