Spec-Zone.ru › Homebrew

Exception: GitHub::API::ValidationFailedError Private

Inherits:
Error
  • Object
  • RuntimeError
  • Error
  • GitHub::API::ValidationFailedError
show all
Defined in:
utils/github/api.rb

Overview

This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.

Error when the API returns a validation error.

Instance Method Summary collapse

  • #initialize(github_message, errors) ⇒ void constructor private

Methods included from Utils::Output::Mixin

#issue_reporting_message, #odebug, #odeprecated, #odie, #odisabled, #ofail, #oh1, #oh1_title, #ohai, #ohai_title, #onoe, #opoo, #opoo_outside_github_actions, #opoo_without_github_actions_annotation, #pretty_deprecated, #pretty_disabled, #pretty_duration, #pretty_install_status, #pretty_installed, #pretty_uninstalled, #pretty_upgradable, #pretty_warning

Constructor Details

#initialize(github_message, errors) ⇒ void

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

  • github_message (String)
  • errors (Array<String>)


152
153
154
155
156
# File 'utils/github/api.rb', line 152

def initialize(github_message, errors)
  github_message = "#{github_message}: #{errors}" unless errors.empty?

  super(github_message, github_message)
end

© 2009–present Homebrew contributors
Licensed under the BSD 2-Clause License.
https://docs.brew.sh/rubydoc/GitHub/API/ValidationFailedError.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API