class Github::Error::UnknownValue
Raised when invalid options are passed to a request body
Public Class Methods
new(key, value, permitted)
click to toggle source
Calls superclass method
Github::Error::ClientError::new
# File lib/github_api/error/client_error.rb, line 66 def initialize(key, value, permitted) super( generate_message( problem: "Wrong value of '#{value}' for the parameter: #{key} provided for this request.", summary: "Github gem checks the request parameters passed to ensure that github api is not hit unnecessairly and fails fast.", resolution: "Permitted values are: #{permitted}, make sure these are the ones you are using" ) ) end