Sha256: e07eb14dc8d129977012440f4476fc74eec10cd6a41b444eb5dfdf6b74e440df
Contents?: true
Size: 405 Bytes
Versions: 3
Compression:
Stored size: 405 Bytes
Contents
# frozen_string_literal: true module Calendly # calendly module's base error object class Error < StandardError include Loggable 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 end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
calendly-0.2.0 | lib/calendly/error.rb |
calendly-0.1.3 | lib/calendly/error.rb |
calendly-0.1.2 | lib/calendly/error.rb |