mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 00:45:18 +03:00
7a3ac07f7f
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
26 lines
795 B
C++
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
|