ProSHADE  0.7.6.0 (JUL 2021)
Protein Shape Detection
ProSHADE_exception Class Reference

This class is the representation of ProSHADE exception. More...

#include <ProSHADE_exceptions.hpp>

Inheritance diagram for ProSHADE_exception:

Public Member Functions

 ProSHADE_exception (const char *msg, std::string errc_, std::string file_, unsigned int line_, std::string func_, std::string info_)
 
virtual std::string get_errc (void)
 This function returns the exception error code. More...
 
virtual std::string get_file (void)
 This function returns the exception location file name. More...
 
virtual int long get_line (void)
 This function returns the exception location line. More...
 
virtual std::string get_func (void)
 This function returns the exception causing function name. More...
 
virtual std::string get_info (void)
 This function returns the exception description. More...
 

Detailed Description

This class is the representation of ProSHADE exception.

An object of this class is thrown whenever ProSHADE encounters exceptional case and needs handling it in unusual manner. It is a slight expansion on the usual C++ extension class.

Definition at line 36 of file ProSHADE_exceptions.hpp.

Member Function Documentation

◆ get_errc()

std::string ProSHADE_exception::get_errc ( void  )
virtual

This function returns the exception error code.

Parameters
[out]errcError code of the exception.

Definition at line 29 of file ProSHADE_exceptions.cpp.

29 { return ( this->errc ); }

◆ get_file()

std::string ProSHADE_exception::get_file ( void  )
virtual

This function returns the exception location file name.

Parameters
[out]fileThe file from where the exception originated.

Definition at line 35 of file ProSHADE_exceptions.cpp.

35 { return ( this->file ); }

◆ get_func()

std::string ProSHADE_exception::get_func ( void  )
virtual

This function returns the exception causing function name.

Parameters
[out]funcThe name of the function from which the exception has originated.

Definition at line 47 of file ProSHADE_exceptions.cpp.

47 { return ( this->func ); }

◆ get_info()

std::string ProSHADE_exception::get_info ( void  )
virtual

This function returns the exception description.

Parameters
[out]infoThe information provided with the exception.

Definition at line 53 of file ProSHADE_exceptions.cpp.

53 { return ( this->info ); }

◆ get_line()

int long ProSHADE_exception::get_line ( void  )
virtual

This function returns the exception location line.

Parameters
[out]lineThe line of code that caused the exception.

Definition at line 41 of file ProSHADE_exceptions.cpp.

41 { return ( this->line ); }

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