Exception: ThorSCMVersion::SCMVersionError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/thor-scmversion/errors.rb

Overview

adapted from code written by Jamie Winsor <[email protected]>

Author:

Direct Known Subclasses

InternalError, TagFormatError

Class Method Summary collapse

Class Method Details

.status_code(code) ⇒ Object

Parameters:

  • code (Integer)


7
8
9
10
# File 'lib/thor-scmversion/errors.rb', line 7

def status_code(code)
  define_method(:status_code) { code }
  define_singleton_method(:status_code) { code }
end