Skip to content

Commit

Permalink
Added new error codes in Python
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
  • Loading branch information
ahcorde committed May 12, 2023
1 parent 38f6435 commit 063d91f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion python/src/sdf/pyError.cc
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,14 @@ void defineError(pybind11::object module)
sdf::ErrorCode::MODEL_PLACEMENT_FRAME_INVALID)
.value("VERSION_DEPRECATED", sdf::ErrorCode::VERSION_DEPRECATED)
.value("MERGE_INCLUDE_UNSUPPORTED",
sdf::ErrorCode::MERGE_INCLUDE_UNSUPPORTED);
sdf::ErrorCode::MERGE_INCLUDE_UNSUPPORTED)
.value("PARAMETER_ERROR", sdf::ErrorCode::PARAMETER_ERROR)
.value("UNKNOWN_PARAMETER_TYPE", sdf::ErrorCode::UNKNOWN_PARAMETER_TYPE)
.value("FATAL_ERROR", sdf::ErrorCode::FATAL_ERROR)
.value("WARNING", sdf::ErrorCode::WARNING)
.value("JOINT_AXIS_EXPRESSED_IN_INVALID", sdf::ErrorCode::JOINT_AXIS_EXPRESSED_IN_INVALID)
.value("CONVERSION_ERROR", sdf::ErrorCode::CONVERSION_ERROR)
.value("PARSING_ERROR", sdf::ErrorCode::PARSING_ERROR);
}
} // namespace python
} // namespace SDF_VERSION_NAMESPACE
Expand Down

0 comments on commit 063d91f

Please sign in to comment.