This commit is contained in:
@@ -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