Exception: SL::VersionError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/searchlink/exceptions.rb

Overview

Custom Semantic Versioning error

Instance Method Summary collapse

Constructor Details

#initialize(msg) ⇒ VersionError

Returns a new instance of VersionError.



6
7
8
9
10
11
12
13
# File 'lib/searchlink/exceptions.rb', line 6

def initialize(msg)
  msg = msg ? ": #{msg}" : ''
  puts "Versioning error#{msg}"

  super()

  Process.exit 1
end