Skip to content

Релиз 2.3

Были подготовлены и реализованы следующие изменения.

Конфигурация

Были изменены конфиги и классы от исключений. Ниже продемонстрированы изменения.

ruby
module ApplicationService
  module Errors
  module Exceptions
    class InputError < Servactory::Errors::InputError; end
    class Input < Servactory::Exceptions::Input; end
    class OutputError < Servactory::Errors::OutputError; end
    class Output < Servactory::Exceptions::Output; end
    class InternalError < Servactory::Errors::InternalError; end
    class Internal < Servactory::Exceptions::Internal; end

    class Failure < Servactory::Errors::Failure; end
    class Failure < Servactory::Exceptions::Failure; end
  end
end
ruby
module ApplicationService
  module Errors
    class InputError < Servactory::Errors::InputError; end
    class OutputError < Servactory::Errors::OutputError; end
    class InternalError < Servactory::Errors::InternalError; end

    class Failure < Servactory::Errors::Failure; end
  end
end
ruby
module ApplicationService
  module Exceptions
    class Input < Servactory::Exceptions::Input; end
    class Output < Servactory::Exceptions::Output; end
    class Internal < Servactory::Exceptions::Internal; end

    class Failure < Servactory::Exceptions::Failure; end
  end
end
ruby
configuration do
  input_error_class ApplicationService::Errors::InputError
  input_exception_class ApplicationService::Exceptions::Input
  internal_error_class ApplicationService::Errors::InternalError
  internal_exception_class ApplicationService::Exceptions::Internal
  output_exception_class ApplicationService::Exceptions::Output
  output_error_class ApplicationService::Errors::OutputError

  failure_class ApplicationService::Errors::Failure
  failure_class ApplicationService::Exceptions::Failure
end
ruby
configuration do
  input_error_class ApplicationService::Errors::InputError
  internal_error_class ApplicationService::Errors::InternalError
  output_error_class ApplicationService::Errors::OutputError

  failure_class ApplicationService::Errors::Failure
end
ruby
configuration do
  input_exception_class ApplicationService::Exceptions::Input
  internal_exception_class ApplicationService::Exceptions::Internal
  output_exception_class ApplicationService::Exceptions::Output

  failure_class ApplicationService::Exceptions::Failure
end