Module: Micro::Service::Error

Defined in:
lib/micro/service/error.rb

Defined Under Namespace

Modules: ByWrongUsage Classes: InvalidAccessToTheServiceObject, UnexpectedResult

Constant Summary collapse

ResultIsAlreadyDefined =
ArgumentError.new('result is already defined'.freeze)
InvalidResultType =
TypeError.new('type must be a Symbol'.freeze)
InvalidResultInstance =
ArgumentError.new('argument must be an instance of Micro::Service::Result'.freeze)
InvalidService =
TypeError.new('service must be a kind or an instance of Micro::Service::Base'.freeze)
InvalidServices =
ArgumentError.new('argument must be a collection of `Micro::Service::Base` classes'.freeze)
UndefinedPipeline =
ArgumentError.new("This class hasn't declared its pipeline. Please, use the `pipeline()` macro to define one.".freeze)