VSM C++ SDK
Vehicle Specific Modules SDK
ugcs::vsm::Exception Class Reference

Base class for all VSM exceptions. More...

#include <exception.h>

Inheritance diagram for ugcs::vsm::Exception:
ugcs::vsm::Param_exception< Dummy, TParam >

Classes

struct  Va_args_overload
 Dummy structure to explicitly indicate the constructor overload for variable arguments (i.e. More...
 
struct  Va_list_overload
 Dummy structure to explicitly indicate the constructor overload for va_list type argument. More...
 

Public Member Functions

 Exception ()
 Default constructor should not be used often. More...
 
 Exception (Va_args_overload, const char *msg,...)
 Construct exception. More...
 
 Exception (Va_list_overload, const char *msg, va_list args)
 Construct exception. More...
 
virtual const char * what () const noexceptoverride
 Get readable exception description. More...
 

Protected Member Functions

void Create_msg (const char *msg, va_list args)
 Create message string (data member "msg") from format parameters. More...
 

Protected Attributes

std::string msg
 Exception message. More...
 

Detailed Description

Base class for all VSM exceptions.

Constructor & Destructor Documentation

ugcs::vsm::Exception::Exception ( )
inline

Default constructor should not be used often.

ugcs::vsm::Exception::Exception ( Va_args_overload  ,
const char *  msg,
  ... 
)

Construct exception.

Parameters
msgSpecified formatted description.
ugcs::vsm::Exception::Exception ( Va_list_overload  ,
const char *  msg,
va_list  args 
)

Construct exception.

Parameters
msgSpecified formatted description.
argsDescription format parameters pack.

Member Function Documentation

void ugcs::vsm::Exception::Create_msg ( const char *  msg,
va_list  args 
)
protected

Create message string (data member "msg") from format parameters.

virtual const char* ugcs::vsm::Exception::what ( ) const
inlineoverridevirtualnoexcept

Get readable exception description.

Member Data Documentation

std::string ugcs::vsm::Exception::msg
protected

Exception message.


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