Exception: Semver::InvalidFormatError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/semver/invalid_format_error.rb

Overview

Thrown when parsing a string that is not valid [semver 2.0](semver.org/spec/v2.0.0.html).

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ InvalidFormatError

Returns a new instance of InvalidFormatError.



8
9
10
11
12
13
# File 'lib/semver/invalid_format_error.rb', line 8

def initialize(value)
  msg = 'invalid format, expected semver string, e.g. ' \
    + '1.2.3, 1.2.3-rc.1, 1.2.3.alpha+1234567890, got :' \
    + value.inspect
  super(msg)
end