SchemaMismatchException.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <swarmros/Exception.h>
4 
6 {
13  {
14  private:
15 
20  std::string _location;
21 
22  public:
23 
30  SchemaMismatchException(const char* message, const std::string& location)
31  : Exception(message), _location(location) { }
32 
38  const char* location() const
39  {
40  return _location.c_str();
41  }
42  };
43 }
Exception thrown when the schema does not match the variant.
std::string _location
The location where the exception has occurred.
Exception base class for swarmros exceptions.
SchemaMismatchException(const char *message, const std::string &location)
Constructor.
const char * location() const
Get the location of the mismatch.


swarmros
Author(s):
autogenerated on Fri Apr 3 2020 03:42:48