ROOT_Application  2.0
C++ Core modules and GUIStock
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes
StockException Class Reference

Base Exception for Stock and StockManager, all src_cpp code. More...

#include <StockException.h>

Inheritance diagram for StockException:
Inheritance graph
[legend]
Collaboration diagram for StockException:
Collaboration graph
[legend]

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

StockException::StockException ( )
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.

StockException::StockException ( const std::string &  namestock,
const std::string &  message 
)
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.

Here is the call graph for this function:

StockException::~StockException ( )
throw (
)
inline

Definition at line 64 of file StockException.h.

Member Function Documentation

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().

Here is the caller graph for this function:

std::string StockException::GetMessage ( ) const
inline

allow GUIException to get the message

Definition at line 66 of file StockException.h.

References mStockMsg.

Referenced by GUIStockException::GUIStockException().

Here is the caller graph for this function:

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

Field Documentation

std::string StockException::mIndic
protected

Definition at line 80 of file StockException.h.

Referenced by AddHeaderMessage(), and StockTALibError::StockTALibError().

std::string StockException::mNameStock
protected

general enought to be in base class

Definition at line 78 of file StockException.h.

Referenced by AddHeaderMessage(), and StockException().

std::string StockException::mStockMsg
protected
std::string StockException::mTimescale
protected

Definition at line 79 of file StockException.h.

Referenced by AddHeaderMessage(), and StockTALibError::StockTALibError().


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