Sha256: 0f32853827164a14df4f5295866f4aa100363831c054446505649fed19155d4a

Contents?: true

Size: 574 Bytes

Versions: 4

Compression:

Stored size: 574 Bytes

Contents

module ActiveHook
  module Server
    module Errors
      class Base < StandardError
        def initialize(msg = nil)
          @message = msg
          log_error
        end

        def message
          "The following error occured: #{@message}"
        end

        private

        def log_error
          ActiveHook::Server.log.err(@message)
        end
      end

      class Config < Base; end
      class Message < Base; end
      class HTTP < Base; end
      class Send < Base; end
      class Manager < Base; end
      class Worker < Base; end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
activehook-server-0.1.7 lib/activehook/server/errors.rb
activehook-server-0.1.6 lib/activehook/server/errors.rb
activehook-server-0.1.5 lib/activehook/server/errors.rb
activehook-server-0.1.4 lib/activehook/server/errors.rb