topazc
exception.cpp File Reference

exception.hpp implementation More...

#include "../../include/exception/exception.hpp"
#include <iostream>
Include dependency graph for exception.cpp:

Go to the source code of this file.

Functions

std::string convert_subsystem_type_to_string (SubsystemType type)
 Function for converting passed subsystem type into string.
void throw_exception (SubsystemType type, std::string msg, uint32_t line, std::string file_name, bool is_debug)
 Function for throwing exception.

Detailed Description

exception.hpp implementation

Definition in file exception.cpp.

Function Documentation

◆ convert_subsystem_type_to_string()

std::string convert_subsystem_type_to_string ( SubsystemType type)

Function for converting passed subsystem type into string.

Parameters
typeSubsystem type
Returns
Converted type into string

Definition at line 17 of file exception.cpp.

Here is the caller graph for this function:

◆ throw_exception()

void throw_exception ( SubsystemType type,
std::string msg,
uint32_t line,
std::string file_name,
bool is_debug )

Function for throwing exception.

This function throwing exception based passed arguments

Parameters
typeSubsystem from which the exception throwned
msgException message
lineLine where exception throwed
file_nameFile where exception throwed
is_debugFlag for print debug information

Definition at line 30 of file exception.cpp.

Here is the call graph for this function: