Exception: GitHub::ValidationFailedError

Inherits:
Error
  • Object
show all
Defined in:
brew/Library/Homebrew/utils/github.rb

Instance Attribute Summary

Attributes inherited from Error

#github_message

Instance Method Summary collapse

Constructor Details

#initialize(github_message, errors) ⇒ ValidationFailedError

Returns a new instance of ValidationFailedError



71
72
73
74
75
76
77
78
79
# File 'brew/Library/Homebrew/utils/github.rb', line 71

def initialize(github_message, errors)
  @github_message = if errors.empty?
    github_message
  else
    "#{github_message}: #{errors}"
  end

  super(@github_message)
end