wx_human_seg 3.0.0
Public Member Functions | Protected Attributes | List of all members
wonxai::WXException Class Reference

#include <wx_exception.h>

Inheritance diagram for wonxai::WXException:

Public Member Functions

 WXException (int err_code, const char *fmt,...) noexcept
 
int errCode () const
 获取异常错误码 More...
 
const char * what () const noexcept override
 获取异常描述 More...
 
std::string toMsg ()
 获取带错误码的异常描述 More...
 

Protected Attributes

int err_code_
 
std::string message_
 

Detailed Description

class WXException

Member Function Documentation

◆ errCode()

int wonxai::WXException::errCode ( ) const

获取异常错误码

Returns
异常错误码

◆ toMsg()

std::string wonxai::WXException::toMsg ( )

获取带错误码的异常描述

Returns
异常描述

◆ what()

const char * wonxai::WXException::what ( ) const
overridenoexcept

获取异常描述

Returns
异常描述

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