Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
ShamCmdOptException Class Reference

Exception handler for exeption in this lib. More...

Inheritance diagram for ShamCmdOptException:
Collaboration diagram for ShamCmdOptException:

Public Member Functions

 ShamCmdOptException (const char *message)
 Exception CTOR from a message (cstring).
 ShamCmdOptException (const std::string &message)
 Exception CTOR from a message (string).
virtual ~ShamCmdOptException () noexcept
 Destructor.
virtual const char * what () const noexcept
 Get the message attached to the exception.

Protected Attributes

std::string msg_
 Held message.

Detailed Description

Exception handler for exeption in this lib.

Definition at line 35 of file cmdopt.cpp.

Constructor & Destructor Documentation

◆ ShamCmdOptException() [1/2]

ShamCmdOptException::ShamCmdOptException ( const char * message)
inlineexplicit

Exception CTOR from a message (cstring).

Definition at line 38 of file cmdopt.cpp.

◆ ShamCmdOptException() [2/2]

ShamCmdOptException::ShamCmdOptException ( const std::string & message)
inlineexplicit

Exception CTOR from a message (string).

Definition at line 41 of file cmdopt.cpp.

◆ ~ShamCmdOptException()

virtual ShamCmdOptException::~ShamCmdOptException ( )
inlinevirtualnoexcept

Destructor.

Definition at line 44 of file cmdopt.cpp.

Member Function Documentation

◆ what()

virtual const char * ShamCmdOptException::what ( ) const
inlinevirtualnoexcept

Get the message attached to the exception.

Definition at line 47 of file cmdopt.cpp.

Member Data Documentation

◆ msg_

std::string ShamCmdOptException::msg_
protected

Held message.

Definition at line 51 of file cmdopt.cpp.


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