Dev Essential
Loading...
Searching...
No Matches
ddl::dd::Error Class Reference

Exception helper class to collect information while parsing, adding DD Objects or other failed operatons. More...

#include <ddl_error.h>

Inherits std::exception.

Public Member Functions

 Error (const std::string &oo_type_operation, const std::string &message)
 CTOR.
 
 Error (const std::string &oo_type_operation, const std::vector< std::string > &oo_operation_args, const std::string &message)
 CTOR with arguments.
 
 Error (const std::string &oo_type_operation, const std::vector< std::string > &oo_operation_args, const std::string &message, const std::vector< Problem > &problems)
 CTOR with arguments.
 
const std::vector< Problem > & problems () const
 
char const * what () const noexcept override
 

Detailed Description

Exception helper class to collect information while parsing, adding DD Objects or other failed operatons.

Constructor & Destructor Documentation

◆ Error() [1/3]

ddl::dd::Error::Error ( const std::string & oo_type_operation,
const std::string & message )
inline

CTOR.

Parameters
oo_type_operationname of the operation
messagethe message to set

◆ Error() [2/3]

ddl::dd::Error::Error ( const std::string & oo_type_operation,
const std::vector< std::string > & oo_operation_args,
const std::string & message )
inline

CTOR with arguments.

Parameters
oo_type_operationname of the operation
oo_operation_argslist of the given arguments
messagethe message to set

◆ Error() [3/3]

ddl::dd::Error::Error ( const std::string & oo_type_operation,
const std::vector< std::string > & oo_operation_args,
const std::string & message,
const std::vector< Problem > & problems )
inline

CTOR with arguments.

Parameters
oo_type_operationname of the operation
oo_operation_argslist of the given arguments
messagethe message to set
problemsthe problems (usually the validation protocol)

Member Function Documentation

◆ problems()

const std::vector< Problem > & ddl::dd::Error::problems ( ) const
inline

get the problems

Returns
std::vector<Problem>&

◆ what()

char const * ddl::dd::Error::what ( ) const
inlineoverridenoexcept

get the problem message

Returns
const char*

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