mirror of
https://git.gfz-potsdam.de/naaice/tug.git
synced 2025-12-14 18:08:22 +01:00
16 lines
637 B
C++
16 lines
637 B
C++
#ifndef BTCSUTILS_H_
|
|
#define BTCSUTILS_H_
|
|
|
|
#include <stdexcept>
|
|
#include <string>
|
|
|
|
#define throw_invalid_argument(msg) \
|
|
throw std::invalid_argument(std::string(__FILE__) + ":" + \
|
|
std::to_string(__LINE__) + ":" + \
|
|
std::string(msg))
|
|
|
|
#define throw_out_of_range(msg) \
|
|
throw std::out_of_range(std::string(__FILE__) + ":" + \
|
|
std::to_string(__LINE__) + ":" + std::string(msg))
|
|
#endif // BTCSUTILS_H_
|