Sha256: 84ffe79c621ae3142dc2e691c8d09e7b92a581190b8d0ce35493c3693be06f37

Contents?: true

Size: 475 Bytes

Versions: 2

Compression:

Stored size: 475 Bytes

Contents

# frozen_string_literal: true

module JekyllPush
  module Error
    #
    # @param msg [String] the custom error message
    class RainbowError < StandardError
      def initialize(msg = '')
        super Rainbow(msg).magenta
      end
    end

    class InvalidConfig < RainbowError; end
    class MissingBranch < RainbowError; end
    class NoFilesBuilt  < RainbowError; end
    class NoOrigin      < RainbowError; end
    class SystemCall    < RainbowError; end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jekyll_push-0.1.2 lib/jekyll_push/error.rb
jekyll_push-0.1.1 lib/jekyll_push/error.rb