Exception: Github::Error::Validations

Inherits:
ClientError show all
Defined in:
lib/github_api/error/client_error.rb

Instance Attribute Summary

Attributes inherited from ClientError

#problem, #resolution, #summary

Attributes inherited from GithubError

#response_headers, #response_message

Instance Method Summary collapse

Methods inherited from ClientError

#generate_message

Methods inherited from GithubError

#backtrace

Constructor Details

#initialize(errors) ⇒ Validations

Returns a new instance of Validations.



78
79
80
81
82
83
84
85
86
# File 'lib/github_api/error/client_error.rb', line 78

def initialize(errors)
  super(
    generate_message(
      problem: "Attempted to send request with nil arguments for #{errors.keys.join(', ')}.",
      summary: 'Each request expects certain number of required arguments.',
      resolution: 'Double check that the provided arguments are set to some value that is neither nil nor empty string.'
    )
  )
end