Skip to content

Commit

Permalink
Add sdf::Error logging in sdf::Param (#939)
Browse files Browse the repository at this point in the history
Adds sdf::Errors &_errors as an argument option to any function that does any console logging. The user can now choose to call functions with the sdf::Errors argument to retrieve the error messages or call them without it and get the same old behavior.


Signed-off-by: Marco A. Gutierrez <[email protected]>
Signed-off-by: Addisu Z. Taddese <[email protected]>
Co-authored-by: Addisu Z. Taddese <[email protected]>
  • Loading branch information
Marco A. Gutiérrez and azeey authored May 5, 2022
1 parent 7baa3ee commit 3099570
Show file tree
Hide file tree
Showing 5 changed files with 826 additions and 165 deletions.
8 changes: 8 additions & 0 deletions include/sdf/Error.hh
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,14 @@ namespace sdf
/// \brief Merge include is unspported for the type of entity being
/// included, or the custom parser does not support merge includes.
MERGE_INCLUDE_UNSUPPORTED,

/// \brief Generic error type for parameters (values of SDFormat elements
/// or attributes).
PARAMETER_ERROR,

/// \brief The specified parameter (values of SDFormat elements
/// or attributes) type is unknown.
UNKNOWN_PARAMETER_TYPE,
};

class SDFORMAT_VISIBLE Error
Expand Down
Loading

0 comments on commit 3099570

Please sign in to comment.