Sha256: e61c8402b5be841f7c928f9d9b953e745c2fce9661345c2a685e60d9137fd37d
Contents?: true
Size: 859 Bytes
Versions: 16
Compression:
Stored size: 859 Bytes
Contents
# encoding: utf-8 module GithubCLI class GithubCLIError < StandardError def self.status_code(code) define_method(:status_code) { code } end end class ApiError < GithubCLIError status_code 5 end class RequiredArgumentMissingError < GithubCLIError status_code 6 end # Raised when a configuration file is corrupt or missing. class ConfigFileNotFound < GithubCLIError status_code 10 def initialize super %{Configuration file corrupt or missing} end end # Raised when GitHub api raised error class GitHubError < GithubCLIError status_code 11 end class HTTPError < GithubCLIError status_code 12 end class UnknownFormatError < GithubCLIError status_code 13 def initialize(format) super %{Unrecognized formatting options: #{format}} end end end # GithubCLI
Version data entries
16 entries across 16 versions & 1 rubygems