Sha256: 78dc7bb34dbd1f08b2a4d26b1a68d1230960ff8f1d79ce346363737122651503

Contents?: true

Size: 328 Bytes

Versions: 7

Compression:

Stored size: 328 Bytes

Contents

require 'baleen/utils/highlighter'

module Baleen
  module Message
    class Exception < Baleen::Message::Base

      def initialize(opt)
        super()
        @params[:message] = opt[:message]
      end

      def terminate?
        true
      end

      def print_message
        hl_error message
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
baleen-0.2.5 lib/baleen/message/exception.rb
baleen-0.2.4 lib/baleen/message/exception.rb
baleen-0.2.3 lib/baleen/message/exception.rb
baleen-0.2.2 lib/baleen/message/exception.rb
baleen-0.2.1 lib/baleen/message/exception.rb
baleen-0.2.0 lib/baleen/message/exception.rb
baleen-0.1.2 lib/baleen/message/exception.rb