class Semver::InvalidFormatError
Thrown when parsing a string that is not valid [semver 2.0](semver.org/spec/v2.0.0.html).
Public Class Methods
new(value)
click to toggle source
Calls superclass method
# 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