Exception: Gaskit::ResultTypeError

Inherits:
Error
  • Object
show all
Defined in:
lib/gaskit/error.rb

Overview

Raised when an operation contract supplies an incorrect result type.

Instance Method Summary collapse

Constructor Details

#initialize(klazz) ⇒ ResultTypeError



11
12
13
14
# File 'lib/gaskit/error.rb', line 11

def initialize(klazz)
  message = "Expected result class to inherit from Gaskit::BaseResult, got: #{klazz}"
  super(message)
end