Sha256: dab1e65fcd383a5df710db8d3f900e95381527c361d05a43f6c387c650de96dc

Contents?: true

Size: 299 Bytes

Versions: 3

Compression:

Stored size: 299 Bytes

Contents

module QPush
  class ServerError < StandardError
    def initialize(msg = nil)
      @message = msg
      log_error
    end

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

    private

    def log_error
      Server.log.err("Server Error - #{@message}")
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
qpush-0.1.2 lib/qpush/server/errors.rb
qpush-0.1.1 lib/qpush/server/errors.rb
qpush-0.1.0 lib/qpush/server/errors.rb