MAST3
Multidisciplinary-design Adaptation and Sensitivity Toolkit (MAST)
MAST::Exceptions::Exception1< Val1Type > Class Template Reference

Detailed Description

template<typename Val1Type>
class MAST::Exceptions::Exception1< Val1Type >

Definition at line 69 of file exceptions.hpp.

#include <exceptions.hpp>

Inheritance diagram for MAST::Exceptions::Exception1< Val1Type >:
Collaboration diagram for MAST::Exceptions::Exception1< Val1Type >:

Public Member Functions

 Exception1 (const Val1Type v1, const std::string &cond, const std::string &msg, const std::string &file, const int line)
 
virtual ~Exception1 ()
 
- Public Member Functions inherited from MAST::Exceptions::ExceptionBase
 ExceptionBase (const std::string &cond, const std::string &val_msg, const std::string &msg, const std::string &file, const int line)
 
virtual ~ExceptionBase ()
 
void throw_error ()
 

Protected Attributes

const Val1Type _val1
 
- Protected Attributes inherited from MAST::Exceptions::ExceptionBase
const std::string _cond
 
const std::string _file
 
const int _line
 
const std::string _msg
 
const std::string _val_msg
 

Constructor & Destructor Documentation

◆ Exception1()

template<typename Val1Type >
MAST::Exceptions::Exception1< Val1Type >::Exception1 ( const Val1Type  v1,
const std::string &  cond,
const std::string &  msg,
const std::string &  file,
const int  line 
)
inline

Definition at line 74 of file exceptions.hpp.

78  :
80  "Val 1: " + std::to_string(v1),
81  msg,
82  file,
83  line),
84  _val1 (v1)
85  {}

◆ ~Exception1()

template<typename Val1Type >
virtual MAST::Exceptions::Exception1< Val1Type >::~Exception1 ( )
inlinevirtual

Definition at line 87 of file exceptions.hpp.

87 { }

Member Data Documentation

◆ _val1

template<typename Val1Type >
const Val1Type MAST::Exceptions::Exception1< Val1Type >::_val1
protected

Definition at line 91 of file exceptions.hpp.


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