template class ugcs::vsm::Param_exception¶
Overview¶
Exception class with one parameter. More…
#include <exception.h> template <typename Dummy = void, typename TParam = int> class Param_exception: public ugcs::vsm::Exception { public: // fields TParam param; // construction Param_exception(Va_args_overload, const char* msg, ...); Param_exception( Va_list_overload, const char* msg, va_list args ); Param_exception( Va_args_overload, const TParam& param, const char* msg, ... ); Param_exception( Va_list_overload, const TParam& param, const char* msg, va_list args ); };
Inherited Members¶
public: // structs struct Va_args_overload; struct Va_list_overload; // methods virtual const char* what() const;
Detailed Documentation¶
Exception class with one parameter.
If you need more than one parameter then wrap them into class and specify the class here.
Parameters:
TParam |
Type for exception parameter. |
Dummy |
Type used for differentiating exception types signatures. |
Fields¶
TParam param
User-defined parameter.
Construction¶
Param_exception(Va_args_overload, const char* msg, ...)
Different constructors for optionally taking the parameter value and formatted message.