Exception: Micro::Service::Error::UnexpectedResult

Inherits:
TypeError
  • Object
show all
Defined in:
lib/micro/service/error.rb

Constant Summary collapse

MESSAGE =
'#call! must return an instance of Micro::Service::Result'.freeze

Instance Method Summary collapse

Constructor Details

#initialize(klass) ⇒ UnexpectedResult

Returns a new instance of UnexpectedResult.



9
# File 'lib/micro/service/error.rb', line 9

def initialize(klass); super(klass.name + MESSAGE); end