lib/jekyll_push/error.rb in jekyll_push-0.1.0 vs lib/jekyll_push/error.rb in jekyll_push-0.1.1
- old
+ new
@@ -1,16 +1,17 @@
# 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