aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Vandenberg2013-08-06 21:48:05 -0700
committerAdam Vandenberg2013-08-08 11:17:16 -0700
commitbb142f4e3b9fc488a9af3f81bb1423bf8aa264b2 (patch)
tree6c8ef926d33d54174d1868c532947102677ae857
parent81468054e0eed35fb7d11da6ed79d2630b1641b1 (diff)
downloadbrew-bb142f4e3b9fc488a9af3f81bb1423bf8aa264b2.tar.bz2
exception style
-rw-r--r--Library/Homebrew/exceptions.rb18
1 files changed, 6 insertions, 12 deletions
diff --git a/Library/Homebrew/exceptions.rb b/Library/Homebrew/exceptions.rb
index ede1b35ab..29da3ab08 100644
--- a/Library/Homebrew/exceptions.rb
+++ b/Library/Homebrew/exceptions.rb
@@ -33,8 +33,7 @@ class FormulaValidationError < StandardError
end
end
-class FormulaSpecificationError < StandardError
-end
+class FormulaSpecificationError < StandardError; end
class FormulaUnavailableError < RuntimeError
attr_reader :name
@@ -82,11 +81,9 @@ module Homebrew
end
end
-class CannotInstallFormulaError < RuntimeError
-end
+class CannotInstallFormulaError < RuntimeError; end
-class FormulaAlreadyInstalledError < RuntimeError
-end
+class FormulaAlreadyInstalledError < RuntimeError; end
class FormulaInstallationAlreadyAttemptedError < Homebrew::InstallationError
def message
@@ -219,16 +216,13 @@ class CompilerSelectionError < StandardError
end
# raised in CurlDownloadStrategy.fetch
-class CurlDownloadStrategyError < RuntimeError
-end
+class CurlDownloadStrategyError < RuntimeError; end
# raised by safe_system in utils.rb
-class ErrorDuringExecution < RuntimeError
-end
+class ErrorDuringExecution < RuntimeError; end
# raised by Pathname#verify_checksum when "expected" is nil or empty
-class ChecksumMissingError < ArgumentError
-end
+class ChecksumMissingError < ArgumentError; end
# raised by Pathname#verify_checksum when verification fails
class ChecksumMismatchError < RuntimeError