Exception: MGit::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/m-git/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, type: nil) ⇒ Error

Returns a new instance of Error.



14
15
16
17
# File 'lib/m-git/error.rb', line 14

def initialize(msg, type:nil)
  @msg = msg
  @type = type
end

Instance Attribute Details

#msgObject (readonly)

Returns the value of attribute msg.



11
12
13
# File 'lib/m-git/error.rb', line 11

def msg
  @msg
end

#typeObject (readonly)

Returns the value of attribute type.



12
13
14
# File 'lib/m-git/error.rb', line 12

def type
  @type
end