Exception: Gitlab::Git::Repository::CreateTreeError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/gitlab/git/repository.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error_code) ⇒ CreateTreeError

Returns a new instance of CreateTreeError.


33
34
35
36
37
38
# File 'lib/gitlab/git/repository.rb', line 33

def initialize(error_code)
  super(self.class.name)

  # The value coming from Gitaly is an uppercase String (e.g., "EMPTY")
  @error_code = error_code.downcase.to_sym
end

Instance Attribute Details

#error_codeObject (readonly)

Returns the value of attribute error_code


31
32
33
# File 'lib/gitlab/git/repository.rb', line 31

def error_code
  @error_code
end