Skip to content
Snippets Groups Projects
Commit 889bb5fb authored by Xu Cheng's avatar Xu Cheng
Browse files

exceptions: add TapAlreadyTappedError

parent 4e196a23
No related branches found
No related tags found
No related merge requests found
......@@ -119,6 +119,18 @@ class TapUnavailableError < RuntimeError
end
end
class TapAlreadyTappedError < RuntimeError
attr_reader :name
def initialize(name)
@name = name
super <<-EOS.undent
Tap #{name} already tapped.
EOS
end
end
class TapPinStatusError < RuntimeError
attr_reader :name, :pinned
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment