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