Method: Gitlab::Git::BaseError#initialize

Defined in:
lib/gitlab/git/base_error.rb

#initialize(msg = nil) ⇒ BaseError

Returns a new instance of BaseError.



31
32
33
34
35
36
37
38
39
40
# File 'lib/gitlab/git/base_error.rb', line 31

def initialize(msg = nil)
  super && return if msg.nil?

  if msg.is_a?(::GRPC::BadStatus)
    set_grpc_error_code(msg)
    (msg)
  end

  super(build_raw_message(msg))
end