Exception: Vcs4sql::Vcs4sqlError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/vcs4sql/exception.rb

Direct Known Subclasses

ChecksumMismatchError

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#codeObject (readonly)

Returns the value of attribute code.



25
26
27
# File 'lib/vcs4sql/exception.rb', line 25

def code
  @code
end