Exception: Monerorequest::RequestVersionError

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

Overview

error raised when an unsupported Monerorequest version is supplied

Instance Method Summary collapse

Constructor Details

#initialize(version) ⇒ RequestVersionError

Returns a new instance of RequestVersionError.



8
9
10
11
# File 'lib/monerorequest.rb', line 8

def initialize(version)
  @version = version
  super
end

Instance Method Details

#messageObject



13
14
15
# File 'lib/monerorequest.rb', line 13

def message
  "Unknown version: #{@version}. Allowed versions: #{Monerorequest::SUPPORTED_MR_VERSIONS}"
end