Exception: Onsi::Errors::UnknownVersionError

Inherits:
BaseError
  • Object
show all
Defined in:
lib/onsi/errors.rb

Overview

An unknown version is requested to be rendered

Author:

  • Maddie Schipper

Since:

  • 1.0.0

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(klass, version) ⇒ UnknownVersionError

Create a new UnknownVersionError

Since:

  • 1.0.0



32
33
34
35
36
# File 'lib/onsi/errors.rb', line 32

def initialize(klass, version)
  super("Unsupported version #{version} for #{klass.name}")
  @klass = klass
  @version = version
end

Instance Attribute Details

#klassObject (readonly)

The class that does not support the requested version.

Since:

  • 1.0.0



20
21
22
# File 'lib/onsi/errors.rb', line 20

def klass
  @klass
end

#versionObject (readonly)

The version requested that isn’t supported

Since:

  • 1.0.0



24
25
26
# File 'lib/onsi/errors.rb', line 24

def version
  @version
end