claw 1.9.0
 
Loading...
Searching...
No Matches
exception.hpp File Reference

A simple class to use as exception with string message. More...

#include <exception>
#include <string>
Include dependency graph for exception.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  claw::exception
 A simple class to use as exception with string message. More...
 
class  claw::bad_format
 Exception thrown when accessing bad formated data. More...
 

Namespaces

namespace  claw
 This is the main namespace.
 

Macros

#define CLAW_EXCEPTION(m)
 Create an exception and add the name of the current function to the message.
 

Detailed Description

A simple class to use as exception with string message.

Author
Julien Jorge

Definition in file exception.hpp.

Macro Definition Documentation

◆ CLAW_EXCEPTION

#define CLAW_EXCEPTION ( m)
Value:
claw::exception(std::string(__FUNCTION__) + ": " + m)
A simple class to use as exception with string message.
Definition exception.hpp:43

Create an exception and add the name of the current function to the message.

Parameters
mA short description of the problem.

Definition at line 92 of file exception.hpp.