Exception: MGit::Error
- Inherits:
-
StandardError
- Object
- StandardError
- MGit::Error
- Defined in:
- lib/m-git/error.rb
Instance Attribute Summary collapse
-
#msg ⇒ Object
readonly
Returns the value of attribute msg.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(msg, type: nil) ⇒ Error
constructor
A new instance of Error.
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
#msg ⇒ Object (readonly)
Returns the value of attribute msg.
11 12 13 |
# File 'lib/m-git/error.rb', line 11 def msg @msg end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
12 13 14 |
# File 'lib/m-git/error.rb', line 12 def type @type end |