#pragma once

#include "exception.h"
#include <maps/wikimap/mapspro/libs/controller/include/exception_info.h>
#include <maps/wikimap/mapspro/libs/controller/include/profile.h>
#include <yandex/maps/wiki/common/format_type.h>

namespace maps::wiki {


enum class InternalErrorPolicy { Throw, Serialize };

controller::ExceptionInfo handleException(
    const std::string& callDetails,
    common::FormatType formatType,
    InternalErrorPolicy internalErrorPolicy,
    controller::Profile* profile);

} // namespace maps::wiki
