Skip to content

Modified the inline error() function to also throw a runtime_error#1192

Merged
KrisThielemans merged 3 commits intoUCL:masterfrom
markus-jehl:issue/1191-error-throws-string-instead-of-runtime-error
May 17, 2023
Merged

Modified the inline error() function to also throw a runtime_error#1192
KrisThielemans merged 3 commits intoUCL:masterfrom
markus-jehl:issue/1191-error-throws-string-instead-of-runtime-error

Conversation

@markus-jehl
Copy link
Copy Markdown
Contributor

I decided against calling the other error function, because that one is deprecated.

@markus-jehl
Copy link
Copy Markdown
Contributor Author

@KrisThielemans : these two includes in common.h introduce circular dependencies if I want to include the TextWriter in error.h and warning.h :

#include "stir/error.h"

I guess this is why info.h (where the TextWriter is already used) is not included here, but instead wherever the info() function is used. I would propose to follow the same strategy for warning and error: remove them from common.h and instead include them where needed. Is that ok with you?

@KrisThielemans KrisThielemans merged commit b3822a8 into UCL:master May 17, 2023
@markus-jehl markus-jehl deleted the issue/1191-error-throws-string-instead-of-runtime-error branch January 29, 2024 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants