Sese Framework
2.3.0
A cross-platform framework
|
Currently, the framework has three subcategories of error handling methods. Here's a detailed introduction and demonstration.
This is the recommended error handling method for the framework. It supports returning either the correct result or an error code.
This is the standard error handling method in C++
, which captures and handles exceptions through try/catch. Although the framework API does not throw exceptions, it provides a more functional sese::Exception
.
The exceptions provided by the framework support carrying call stack information and dynamically constructed strings.
This is a common error handling method in C
, which uses direct return of integers or null pointer checks as error judgment criteria. A significant portion of this design was retained in the initial design of the framework.