使用标准异常处理
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
// 版权所有 (c) ling 保留所有权利。
|
||||
// 除非另行说明,否则仅允许在parameter中使用此文件中的代码。
|
||||
//
|
||||
// Created by ling on 24-2-4.
|
||||
// 由 ling 创建于 24-2-4.
|
||||
//
|
||||
|
||||
#ifndef OPTIONS_H
|
||||
|
||||
21
include/OptionsException.h
Normal file
21
include/OptionsException.h
Normal file
@@ -0,0 +1,21 @@
|
||||
// 版权所有 (c) ling 保留所有权利。
|
||||
// 除非另行说明,否则仅允许在parameter中使用此文件中的代码。
|
||||
//
|
||||
// 由 ling 创建于 24-2-7.
|
||||
//
|
||||
|
||||
#ifndef OPTIONSEXCEPTION_H
|
||||
#define OPTIONSEXCEPTION_H
|
||||
#include <stdexcept>
|
||||
|
||||
|
||||
namespace ling {
|
||||
class OptionsException : public std::runtime_error {
|
||||
public:
|
||||
explicit OptionsException(const std::string &err);
|
||||
|
||||
explicit OptionsException(const char *err);
|
||||
};
|
||||
} // ling
|
||||
|
||||
#endif //OPTIONSEXCEPTION_H
|
||||
@@ -1,5 +1,7 @@
|
||||
// 版权所有 (c) ling 保留所有权利。
|
||||
// 除非另行说明,否则仅允许在parameter中使用此文件中的代码。
|
||||
//
|
||||
// Created by ling on 24-2-4.
|
||||
// 由 ling 创建于 24-2-4.
|
||||
//
|
||||
|
||||
#ifndef ORDER_H
|
||||
|
||||
Reference in New Issue
Block a user