Console Library 4.7.0
A header-only library that makes C++ simple
Loading...
Searching...
No Matches
csexc.h File Reference

定义 console 库使用的自定义异常类层次结构。 More...

#include <stdexcept>
#include <string>

Go to the source code of this file.

Classes

class  console::console_error
 console 库所有异常的基类。 More...
class  console::fatal_logging
 表示致命日志错误,通常会导致程序终止。 More...
class  console::bad_format
 表示格式化字符串错误,例如占位符与参数不匹配。 More...
class  console::file_error
 表示文件操作错误,如打开失败、读取失败等。 More...
class  console::bad_get
 表示从 ItemBox 中获取类型不匹配或空值时发生的错误。 More...
class  console::multiarray_error
 表示 MultiArray 多维数组操作中的错误,如维度不匹配。 More...
class  console::container_error
 表示通用容器操作错误。 More...
class  console::index_error
 表示索引越界错误。 More...
class  console::bad_maybe_access
 表示对空的 Maybe 对象进行取值操作时抛出的异常。 More...
class  console::domain_error
 表示试图对无效的数学值域进行操作时抛出的异常。 More...

Namespaces

namespace  console
 本库所有组件所在的顶层命名空间。

Detailed Description

定义 console 库使用的自定义异常类层次结构。

所有异常都继承自 console::console_error,后者派生自 std::runtime_error。

Author
MrXie1109
Date
2026