From e5a42fa94ce1daadb4738f496ae2ea1190ee4c3c Mon Sep 17 00:00:00 2001 From: dmartinez <dmartinez@iri.upc.edu> Date: Tue, 29 Mar 2016 17:47:04 +0200 Subject: [PATCH] More informative error msgs. --- src/symbolic/goals.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/symbolic/goals.cpp b/src/symbolic/goals.cpp index 684bbdb2..189e6efc 100644 --- a/src/symbolic/goals.cpp +++ b/src/symbolic/goals.cpp @@ -161,16 +161,17 @@ void RDDLGoal::write_PPDDL_problem(std::ostream &out) const void RDDLGoal::write_PPDDL(std::ostream &out, const std::vector<PPDDL::FullObject>& rule_params) const { - throw std::logic_error("Unimplemented"); + throw std::logic_error("Unimplemented RDDLGoal::write_PPDDL"); } -void RDDLGoal::PPDDL_grounding() { throw std::logic_error("Unimplemented"); }; +void RDDLGoal::PPDDL_grounding() { throw std::logic_error("Unimplemented RDDLGoal::PPDDL_grounding"); }; -void RDDLGoal::modify_reward(const float modification) { throw std::logic_error("Unimplemented (but can be implemented)"); }; +void RDDLGoal::modify_reward(const float modification) { throw std::logic_error("Unimplemented RDDLGoal::modify_reward (but can be implemented)"); }; RewardFunctionGroup RDDLGoal::get_pddl_grounded_goals(const std::vector<std::string>& symbolic_params, const std::vector<std::string>& grounded_params, - const PPDDLObjectManager<PPDDL::FullObject>& object_manager) const { throw std::logic_error("Unimplemented"); return RewardFunctionGroup(); }; + const PPDDLObjectManager<PPDDL::FullObject>& object_manager) const +{ throw std::logic_error("Unimplemented RDDLGoal::get_pddl_grounded_goals"); return RewardFunctionGroup(); }; void RDDLGoal::add_simple_reward(const PredicateGroup<TypedAtom>& preconditions, const float reward_value) { RDDLGoalComponent::Ptr reward_value_component_ptr(new RDDLGoalNumericLeaf(reward_value)); -- GitLab