Skip to content
Snippets Groups Projects
Commit 418393d1 authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel
Browse files

Add Bad_function_call exception in NodeSelector

parent e880d5a2
No related branches found
No related tags found
No related merge requests found
......@@ -46,6 +46,17 @@ namespace hpp {
std::ostream& print (std::ostream& os) const;
/// Should never be called.
virtual void addNumericalConstraint (const core::DifferentiableFunctionPtr_t& /* function */)
{
HPP_THROW_EXCEPTION (Bad_function_call, "This component does not have constraints.");
}
/// Should never be called.
virtual void addLockedDofConstraint (const core::LockedDof& /* constraint */)
{
HPP_THROW_EXCEPTION (Bad_function_call, "This component does not have constraints.");
}
protected:
/// Initialization of the object.
void init (const NodeSelectorPtr_t& weak);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment