COPASI API  4.16.103
Public Member Functions | Private Attributes | List of all members
copasi::autoexcept Class Reference

#include <COptionParser.h>

Inheritance diagram for copasi::autoexcept:
Inheritance graph
Collaboration diagram for copasi::autoexcept:
Collaboration graph

Public Member Functions

 autoexcept (autothrow id, const std::string &message)
autothrow get_autothrow_id (void) const
- Public Member Functions inherited from copasi::option_error
const char * get_help_comment (void) const
 option_error (const std::string &what_arg)

Private Attributes

autothrow autothrow_

Detailed Description

if any option that is a autothrow option is present on the command line, this exception class will be thrown when that option is parsed.

Definition at line 144 of file COptionParser.h.

Constructor & Destructor Documentation

copasi::autoexcept::autoexcept ( autothrow  id,
const std::string &  message 

Definition at line 148 of file COptionParser.h.

149  : option_error(message), autothrow_(id) {}
option_error(const std::string &what_arg)

Member Function Documentation

autothrow copasi::autoexcept::get_autothrow_id ( void  ) const

get the autothrow enum member for the autothrow option that caused the exception.

Definition at line 155 of file COptionParser.h.

References autothrow_.

Referenced by main().

156  {return autothrow_;}

Member Data Documentation

autothrow copasi::autoexcept::autothrow_

Definition at line 158 of file COptionParser.h.

Referenced by get_autothrow_id().

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