aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/exceptions.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2013-08-06 21:48:05 -0700
committerAdam Vandenberg2013-08-08 11:17:16 -0700
commit1ce1c9162a4be0061549cff4399dc6b581ad2d86 (patch)
treec61cee9631a92fbac80d6bf997d963a1c6c7370d /Library/Homebrew/exceptions.rb
parent45ace26f6bf1e5e90b0b79556f0b353d546bd1a0 (diff)
downloadhomebrew-1ce1c9162a4be0061549cff4399dc6b581ad2d86.tar.bz2
exception style
Diffstat (limited to 'Library/Homebrew/exceptions.rb')
-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