sapling/eden/fs/utils/NotImplemented.h
Chad Austin 7a3ac07f7f move EdenError to utils/
Summary:
I want to use EdenError from some code outside of service/, so move
EdenError into utils.

Reviewed By: genevievehelsel

Differential Revision: D25447438

fbshipit-source-id: 2d1ddfa379238369679e84708518a9ba106f76b9
2021-02-23 19:58:03 -08:00

26 lines
795 B
C++

/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This software may be used and distributed according to the terms of the
* GNU General Public License version 2.
*/
#pragma once
#include "eden/fs/utils/EdenError.h"
namespace facebook {
namespace eden {
#define NOT_IMPLEMENTED() \
do { \
throw newEdenError( \
EdenErrorType::GENERIC_ERROR, \
" +++++++ NOT IMPLEMENTED +++++++ Function: ", \
__FUNCTION__, \
" Line: ", \
__LINE__); \
} while (true)
} // namespace eden
} // namespace facebook