Nimbus API
v1.0
A tiny framework for real-time volumetric cloud rendering
Exception.h
1
// File: Exception.h
2
// Purpose: Header file for exception handling using standard exceptions
3
4
#pragma once
5
6
#include <iostream>
7
#include <exception>
8
#include <fstream>
9
#include <string>
10
11
namespace
nimbus
12
{
13
17
class
NimbusException
:
public
std::exception
18
{
19
private
:
20
std::string errMsg;
// Error message
21
std::string file;
// File where the error was produced
22
std::string
function
;
// Function where the error was produced
23
std::string line;
// Line number where the error was produced
24
public
:
25
NimbusException
(
const
char
* errMsg,
const
char
* file,
const
char
*
function
,
int
line);
26
void
printError
()
const
throw
();
27
};
28
}
nimbus::NimbusException::printError
void printError() const
Definition:
Exception.cpp:27
nimbus::NimbusException::NimbusException
NimbusException(const char *errMsg, const char *file, const char *function, int line)
Definition:
Exception.cpp:16
nimbus::NimbusException
Definition:
Exception.h:18
Nimbus 1.0
inc
Exception.h
Generated by
1.8.18