Module Chef::Formatters::APIErrorFormatting
In: lib/chef/formatters/error_inspectors/api_error_formatting.rb

Methods

Constants

NETWORK_ERROR_CLASSES = [Errno::ECONNREFUSED, Timeout::Error, Errno::ETIMEDOUT, SocketError]

Public Instance methods

Fallback for unexpected/uncommon http errors

Parses JSON from the error response sent by Chef Server and returns the error message

[Validate]