lib/errors.rb in carthage_remote_cache-0.0.2 vs lib/errors.rb in carthage_remote_cache-0.0.3
- old
+ new
@@ -1,13 +1,16 @@
-class MultipleErrorsError < StandardError
+# Common type for all carthage_remote_cache Errors.
+class AppError < StandardError; end
+class MultipleErrorsError < AppError
+
def initialize(errors)
@errors = errors
end
def message
@errors.map { |e| e.message }.join("\n")
end
end
-class OutdatedFrameworkBuildError < StandardError; end
+class OutdatedFrameworkBuildError < AppError; end