41 #ifndef RELOGO_ERRORS_H
42 #define RELOGO_ERRORS_H
48 #include "repast_hpc/RepastErrors.h"
50 #include <boost/lexical_cast.hpp>
59 class ReLogo_Error_1:
public std::invalid_argument{
61 ReLogo_Error_1(std::string name): INVALID_ARG(ERROR_NUMBER 1)
62 THROWN_BY
"Observer::findNetwork(const std::string& name)"
63 REASON
"The default directed network must be created before using it"
64 EXPLANATION
"'Find Network' was called before the specified network '" + name +
"' was created; "
66 RESOLUTION
"Ensure that the network is created before any attempt to use it is made"
71 class ReLogo_Error_2: public std::invalid_argument{
73 ReLogo_Error_2(std::string name): INVALID_ARG(ERROR_NUMBER 2)
74 THROWN_BY
"Observer::findNetwork(const std::string& name)"
75 REASON
"The default undirected network must be created before using it"
76 EXPLANATION
"'Find Network' was called before the specified network '" + name +
"' was created; "
78 RESOLUTION
"Ensure that the network is created before any attempt to use it is made"
83 class ReLogo_Error_3: public std::invalid_argument{
85 ReLogo_Error_3(std::string name): INVALID_ARG(ERROR_NUMBER 3)
86 THROWN_BY
"Observer::findNetwork(const std::string& name)"
87 REASON
"A network must be created before using it"
88 EXPLANATION
"'Find Network' was called before the specified network '" + name +
"' was created; " +
89 "the network was not found."
91 RESOLUTION
"Ensure that the network is created before any attempt to use it is made"