lib/berkshelf/errors.rb in berkshelf-0.4.0.rc4 vs lib/berkshelf/errors.rb in berkshelf-0.4.0

- old
+ new

@@ -10,14 +10,18 @@ alias_method :message, :to_s end class InternalError < BerkshelfError; status_code(99); end - class MethodNotImplmentedError < ::Berkshelf::InternalError ; end - + class AbstractFunction < InternalError + def to_s + "Function must be implemented on includer" + end + end + class BerksfileNotFound < BerkshelfError; status_code(100); end class NoVersionForConstraints < BerkshelfError; status_code(101); end - class DownloadFailure < BerkshelfError; status_code(102); end + class DuplicateLocationDefined < BerkshelfError; status_code(102); end class CookbookNotFound < BerkshelfError; status_code(103); end class GitError < BerkshelfError status_code(104) attr_reader :stderr