ROOT_Application
2.0
C++ Core modules and GUIStock
|
Base Exception for Stock and StockManager, all src_cpp code. More...
#include <StockException.h>
Public Member Functions | |
StockException () | |
StockException (const std::string &namestock) | |
StockException (const std::string &namestock, const std::string &message) | |
StockException (const std::string &namestock, const std::string &tmscl, const std::string &indicator) | |
~StockException () throw () | |
std::string | GetMessage () const |
allow GUIException to get the message More... | |
void | AddHeaderMessage () |
indic_label is optional More... | |
virtual const char * | what () const noexcept |
Protected Attributes | |
std::string | mNameStock |
general enought to be in base class More... | |
std::string | mTimescale |
std::string | mIndic |
std::string | mStockMsg |
used by base class More... | |
Base Exception for Stock and StockManager, all src_cpp code.
Try StockException an abstract class, But derived must implement the what() method. Bad cannot build GUIStockException( params, StockException() ) when catching a StockException
Try 2, ok working for GUIException as well All derived class can add their own infos, all stored in mStockMsg need to explicitely call StockException::what() ?? does not seem
Error must be created as : StockDerivedError( args, FileError() ) the FileError is created and then the message copied into StockException.mStockMsg
Decided to use only string parameters, no Indicator or ETime
Definition at line 44 of file StockException.h.
|
inline |
Definition at line 48 of file StockException.h.
StockException::StockException | ( | const std::string & | namestock | ) |
Definition at line 12 of file StockException.cpp.
References mNameStock.
|
inline |
Definition at line 56 of file StockException.h.
StockException::StockException | ( | const std::string & | namestock, |
const std::string & | tmscl, | ||
const std::string & | indicator | ||
) |
Definition at line 22 of file StockException.cpp.
References AddHeaderMessage(), and mNameStock.
|
inline |
Definition at line 64 of file StockException.h.
void StockException::AddHeaderMessage | ( | ) |
indic_label is optional
Definition at line 49 of file StockException.cpp.
References mIndic, mNameStock, mStockMsg, and mTimescale.
Referenced by StockException(), StockFileError::StockFileError(), and StockTALibError::StockTALibError().
|
inline |
allow GUIException to get the message
Definition at line 66 of file StockException.h.
References mStockMsg.
Referenced by GUIStockException::GUIStockException().
|
inlinevirtualnoexcept |
Reimplemented in StockPythonException, StockTALibError, and StockFileError.
Definition at line 68 of file StockException.h.
References mStockMsg.
Referenced by ControllerIndicatorTHStock::AddData(), TCPServer::handle_accept(), StockManager::Load(), MainControllerIndicatorTHStock::Validation(), StockFileError::what(), StockTALibError::what(), and StockPythonException::what().
|
protected |
Definition at line 80 of file StockException.h.
Referenced by AddHeaderMessage(), and StockTALibError::StockTALibError().
|
protected |
general enought to be in base class
Definition at line 78 of file StockException.h.
Referenced by AddHeaderMessage(), and StockException().
|
protected |
used by base class
Definition at line 82 of file StockException.h.
Referenced by AddHeaderMessage(), GetMessage(), StockFileError::StockFileError(), StockPythonException::StockPythonException(), StockTALibError::StockTALibError(), and what().
|
protected |
Definition at line 79 of file StockException.h.
Referenced by AddHeaderMessage(), and StockTALibError::StockTALibError().