Exception: Datadog::Transport::HTTP::Client::NoDowngradeAvailableError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ddtrace/transport/http/client.rb

Overview

Raised when configured with an unknown API version

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(version) ⇒ NoDowngradeAvailableError

Returns a new instance of NoDowngradeAvailableError.



96
97
98
# File 'lib/ddtrace/transport/http/client.rb', line 96

def initialize(version)
  @version = version
end

Instance Attribute Details

#versionObject (readonly)

Returns the value of attribute version.



94
95
96
# File 'lib/ddtrace/transport/http/client.rb', line 94

def version
  @version
end

Instance Method Details

#messageObject



100
101
102
# File 'lib/ddtrace/transport/http/client.rb', line 100

def message
  "No downgrade from transport API version #{version} is available!"
end