Sha256: d06112139dc82be47ee3e9472d1fce0c665aa232f05ba76fb9881a1af454f3a8

Contents?: true

Size: 310 Bytes

Versions: 4

Compression:

Stored size: 310 Bytes

Contents

# frozen_string_literal: true

module YouCanBookMe
  # YouCanBookMe module's base error object
  class Error < StandardError
    include Loggable

    def initialize(message = nil)
      msg = "#{self.class} occured."
      msg += " message:#{message}"
      warn_log msg
      super message
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
youcanbookme-0.0.6.alpha lib/youcanbookme/error.rb
youcanbookme-0.0.5.alpha lib/youcanbookme/error.rb
youcanbookme-0.0.4.alpha lib/youcanbookme/error.rb
youcanbookme-0.0.3.alpha lib/youcanbookme/error.rb