Console Library 8.0.0
A header-only library that makes C++ simple
Loading...
Searching...
No Matches
console::TypeError Class Reference

表示类型错误,例如访问 Maybe 中不存在的值或 Box 中类型不匹配。 More...

#include <csexc.h>

Inheritance diagram for console::TypeError:
console::ConsoleError

Public Member Functions

 TypeError (const std::string &msg)
 构造 TypeError。
Public Member Functions inherited from console::ConsoleError
 ConsoleError (const std::string &msg)
 构造 ConsoleError。

Detailed Description

表示类型错误,例如访问 Maybe 中不存在的值或 Box 中类型不匹配。

See also
console::Maybe, console::Box
Note
空值 也被视为一种类型错误,因为它表示没有类型可访问。

Constructor & Destructor Documentation

◆ TypeError()

console::TypeError::TypeError ( const std::string & msg)
inline

构造 TypeError。

Parameters
msg错误描述信息。

The documentation for this class was generated from the following file: