COMPASS  5.4.4
End-to-end AO simulation tool using GPU acceleration
CarmaException Class Reference

Carma exception throw by libcarma. More...

#include <carma_exception.h>

Collaboration diagram for CarmaException:

Public Member Functions

 CarmaException (std::string reason, std::string file, unsigned int line)
 Constructor. More...
 
 ~CarmaException ()
 Destructor. More...
 
std::string show_reason () const
 Format into a const char *. More...
 

Detailed Description

Carma exception throw by libcarma.

Carma exception throw by libcarma

This class is used to throw a Carma exception (generally with libcarma)

Definition at line 36 of file carma_exception.h.

Constructor & Destructor Documentation

◆ CarmaException()

CarmaException::CarmaException ( std::string  reason,
std::string  file,
unsigned int  line 
)

Constructor.

CarmaException Constructor

Parameters
reason: a detailed description of the error
file: which file this exception has been created
line: which line this exception has been created

Definition at line 52 of file carma_exception.h.

◆ ~CarmaException()

CarmaException::~CarmaException ( )

Destructor.

CarmaException Destructor

Definition at line 61 of file carma_exception.h.

Member Function Documentation

◆ show_reason()

std::string CarmaException::show_reason ( ) const

Format into a const char *.

Format the Carma exception into a const char *

Returns
Formated exception

Definition at line 71 of file carma_exception.h.


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