Exception: Vcs4sql::Vcs4sqlError
- Inherits:
-
StandardError
- Object
- StandardError
- Vcs4sql::Vcs4sqlError
- Defined in:
- lib/vcs4sql/exception.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code, msg) ⇒ Vcs4sqlError
constructor
A new instance of Vcs4sqlError.
Constructor Details
#initialize(code, msg) ⇒ Vcs4sqlError
Returns a new instance of Vcs4sqlError.
27 28 29 30 |
# File 'lib/vcs4sql/exception.rb', line 27 def initialize(code, msg) super("#{code}: #{msg}") @code = code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
25 26 27 |
# File 'lib/vcs4sql/exception.rb', line 25 def code @code end |