Sha256: a814869c3fac5a84a8b73bfa97149e643d8e1fdf7de5b9c90c5efe6fd5134765
Contents?: true
Size: 664 Bytes
Versions: 4
Compression:
Stored size: 664 Bytes
Contents
# frozen_string_literal: true module ConvenientService module Service module Plugins module RaisesOnNotResultReturnValue module Exceptions class ReturnValueNotKindOfResult < ::ConvenientService::Exception def initialize(service:, result:, method:) message = <<~TEXT Return value of service `#{service.class}` is NOT a `Result`. It is `#{result.class}`. Did you forget to call `success`, `failure`, or `error` from the `:#{method}` method? TEXT super(message) end end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems