This commit is contained in:
1 parent
c8ac4fcae5
commit
4cee170d66
17576 files changed
+895740
-2
No files matched your search
@@ -0,0 +1,12 @@
|
||||
module Typhoeus
|
||||
module Errors
|
||||
|
||||
# Raises when block connection is turned on
|
||||
# and making a real request.
|
||||
class NoStub < TyphoeusError
|
||||
def initialize(request)
|
||||
super("The connection is blocked and no stub defined: #{request.url}")
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,8 @@
|
||||
module Typhoeus
|
||||
module Errors
|
||||
|
||||
# Default typhoeus error class for all custom errors.
|
||||
class TyphoeusError < StandardError
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user