lib/wolf_core/application/exception_operations.rb



module WolfCore
  module ExceptionOperations
    def raise_service_error(error_data)
      error_data = { message: error_data } if error_data.is_a?(String)
      raise WolfCore::ServiceException, error_data
    end
  end
end