vrpRouting  0.3
AssertFailedException Class Reference

Extends std::exception and is the exception that we throw if an assert fails. More...

#include "pgr_assert.h"

Inheritance diagram for AssertFailedException:
Collaboration diagram for AssertFailedException:

Public Member Functions

 AssertFailedException (std::string msg)
 
virtual ~AssertFailedException () throw ()
 
virtual const char * what () const throw ()
 

Private Attributes

const std::string str
 Holds what() we got as message. More...
 

Detailed Description

Extends std::exception and is the exception that we throw if an assert fails.

Definition at line 140 of file pgr_assert.h.

Constructor & Destructor Documentation

◆ AssertFailedException()

AssertFailedException::AssertFailedException ( std::string  msg)
explicit

Definition at line 71 of file pgr_assert.cpp.

71  :
72  str(msg) {}

◆ ~AssertFailedException()

virtual AssertFailedException::~AssertFailedException ( )
throw (
)
inlinevirtual

Definition at line 147 of file pgr_assert.h.

147 {}

Member Function Documentation

◆ what()

const char * AssertFailedException::what ( ) const
throw (
)
virtual

Definition at line 67 of file pgr_assert.cpp.

67  {
68  return str.c_str();
69 }

References str.

Referenced by do_compatibleVehicles(), do_optimize(), do_pgr_pickDeliver(), do_pgr_pickDeliverEuclidean(), do_pickDeliver(), and do_vrp_vroom().

Member Data Documentation

◆ str

const std::string AssertFailedException::str
private

Holds what() we got as message.

Definition at line 142 of file pgr_assert.h.

Referenced by what().


The documentation for this class was generated from the following files:
AssertFailedException::str
const std::string str
Holds what() we got as message.
Definition: pgr_assert.h:142