-
Notifications
You must be signed in to change notification settings - Fork 97
refactor: Centralize error output #3902
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
arng40
wants to merge
200
commits into
develop
Choose a base branch
from
refactor/dudes/error-context
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
200 commits
Select commit
Hold shift + click to select a range
c846586
creation of an object header that logs errors and warnings in a yaml …
amandinehry f1713fa
Set up ErrorHandling
amandinehry 4e5250f
traits errors commented (to treat)
amandinehry 94b775c
Set up test
amandinehry 1cb8aa3
Modification to properly format the yaml so that it can be parsed if …
amandinehry 9d5e16a
Test to add variadic arguments
amandinehry 2f7660c
draft: retrieve data contexts info
amandinehry 6036551
Added additional information in the yaml - not functional missing the…
amandinehry 46b4904
First attempt at outputting exceptions
amandinehry e1aed93
Complete: code for outputting errors into yaml
amandinehry bc953be
Manage the text contained in the potential exception
amandinehry 1a434bc
First attempt: Handling the text contained in the potential exception…
amandinehry acf4d99
Complete: yaml output for PVT tables error
amandinehry ee58884
YAML error message well formatted
amandinehry 32a0237
Fix duplication error
amandinehry 589270f
Add variadic parameters to GEOS_THROW_CTX_IF
amandinehry 9b65581
Reorganization after operational tests
amandinehry b13f0a6
Apply the output error functionality in yaml to all geos errors
amandinehry 6de2c6a
Latest update for exception handling (try/catch in main)
amandinehry 5830aee
Add priority to the error message into the yaml file
amandinehry 2b27c41
Update of the commit named "latest update for exception handling (try…
amandinehry 86f793e
set priority
amandinehry 8a8117e
errors cli modification: add --errors-output
amandinehry 2c0f5aa
errors cli modification: add --errors-output
amandinehry eb2f691
Replace original macros
amandinehry 7b5f293
Correction: replace original macros
amandinehry c07b502
Modification of the Optional function to accept arguments separated b…
amandinehry 670ddfa
Reacting with the command line option -e / --errors-output
amandinehry d08a30f
Add the rank on which the error is catch for error and warning outputs
amandinehry 5a6c1a0
Unit test to check if the contents of the yaml file match exactly wha…
amandinehry 4928dcd
Add the "Exception" field into the message type enumeration
amandinehry 02dcf50
Modify the macros corresponding to throw to allow the exception to be…
amandinehry 59ac94d
Remove ASSERT dependency on LvArray
amandinehry 835e444
Remove GEOS_THROW_(...) and GEOS_ERROR_(...) dependency on LvArray
amandinehry 10a2627
Restore to its original state an input file that I used for my tests
amandinehry 9bd9f30
Delete additionnal spaces
amandinehry c9fea30
Syntax fixes
amandinehry 7fa2b74
Syntax fixes
amandinehry 8a9ff29
xsd + revert comment
amandinehry c1e001e
xsd + check includes
amandinehry e31f17c
Merge remote-tracking branch 'upstream/develop' into feature/amandine…
amandinehry a0eefd2
Compilation error fix
amandinehry 5caa099
Remove vscode config files
amandinehry 7aee0c6
Remove empty comment lines and commented code
amandinehry 80bb07b
Changes in macros names
amandinehry 149789e
Change the loop syntax ito a for-each syntax to solve the issue of in…
amandinehry 74de273
Add comments
amandinehry 92e6854
Reorganization of declarations
amandinehry f910d0e
add g_ before global variables + add comment to the addToMsg() method
amandinehry 67fce43
Fix in writing the stack trace in the yaml
amandinehry 387687d
Merge remote-tracking branch 'origin/develop' into feature/amandinehr…
amandinehry 5c801a5
Add an error msg when the call stack is not formatted as expected + r…
amandinehry e34c90d
Add comment in the write() function
amandinehry 5c4fbcb
Modification of the streamMultilineYamlAttribute() function: no longe…
amandinehry 75eff27
Modification of the streamMultilineYamlAttribute() method: take the i…
amandinehry dab2da5
Fix null pointer access on parent by using instance field instead
amandinehry 0a95296
Add comments
amandinehry c4a002e
Just silently kill GEOS when a NotAnError is raised
amandinehry cbc5102
Removed the pointer to an Error Logger object (this is no longer usef…
amandinehry 3318d85
Minor syntax modification
amandinehry 343b830
Renaming ContextInfo in ErrorContext + minor correction on the format…
amandinehry e22e538
Minor modifications on the GEOS_THROW_IF_GT_MSG message
amandinehry 8de9060
Using GEOS_LOG_RANK instead of GEOS_LOG
amandinehry 6c762e7
Add an enumeration to secure the keys that can be entered for the map…
amandinehry d288490
Improved code comments
amandinehry 99d9b5b
reverse the change from GEOS_LOG to GEOS_LOG_RANK +empty the object a…
amandinehry f929f97
minor changes syntax + remove isValidStackTrace() method and replace …
amandinehry 709d8a4
Minor changes: string to string_view when it was possible + add an ad…
amandinehry 051e85b
Remove try/catch in the createFile() and the flushCurrentErrorMsg() m…
amandinehry 517782b
Renaming: flushCurrentErrorMsg() into flushErrorMsg()
amandinehry 2e0e396
Change GEOS_LOG() to GEOS_LOG_RANK()
amandinehry a83a3a1
initialize the error message line by default
amandinehry 9fe289a
Doxygen comments
amandinehry da7dc82
Comments added
amandinehry 260133e
Sort contextual information by decreasing priority
amandinehry e0c876f
Simplification of the for loop which write context information
amandinehry e1a2128
Changes following comments received on my PR
amandinehry 4811b6c
Unit test implemented
amandinehry 4a8ea5b
evaluate MSG only one time in macros
amandinehry 2b38577
Merge commit '7e85e747ec65cd498ba0e9e4730f79d2692ed0bd' into feature/…
MelReyCG 127f38e
Merge branch 'feature/amandinehry/create-yaml-file-and-structure' of …
amandinehry e9508f5
Merge remote-tracking branch 'upstream/develop' into feature/amandine…
amandinehry 7fc0ced
🔊 warn the deveveloppers that a yamlFile should not be written if not…
MelReyCG 35f7686
🐛 ⏪ set the --errorsOutput mandatory because of bug + revert optionpa…
MelReyCG 31842a5
✏️ typo
MelReyCG a1105e4
🎨 uncrustify
MelReyCG c118dd4
🎨 docs alignement
MelReyCG 4215fad
🎨 format
MelReyCG 507ac66
builder pattern for addContextInfo
MelReyCG 7b4ec52
♻️ refactor of the test: keeping only necessary testing, separated te…
MelReyCG a01d8ac
🐛 bugfix for test, wrong global instance impacting
MelReyCG d4c465b
🎨 format
MelReyCG 1e32d65
Merge remote-tracking branch 'origin/develop' into feature/amandinehr…
MelReyCG 6d10e3a
⏪ restored "Rank N:" if error messages
MelReyCG e9cd64c
test
amandinehry c7031bf
Merge branch 'feature/amandinehry/create-yaml-file-and-structure' of …
amandinehry e07d0b7
uncomment the rmoveFile() function
amandinehry 785636b
stack trace management
amandinehry dd3b844
Merge remote-tracking branch 'amandinehryFork/develop' into feature/a…
MelReyCG e0bad67
♻️ ✅ New GEOS_ERROR macros with context included + new unit macro uni…
MelReyCG ab40edc
✅ ♻️ Simplifying + testing macros (GEOS_ERROR_* and GEOS_ASSERT_*) + …
MelReyCG faa84fa
📝 adding macro docs
MelReyCG dd97f0e
✨ ✅ adding error cause in unit test
MelReyCG d708cac
♻️ reordered error & throw macro to group them
MelReyCG 66ab5cb
♻️ ✅ uniformized warning macros
MelReyCG e6135b1
✅ 🐛 ⚡️ bugfix when callstack is empty + disable callstack for perfs
MelReyCG 589fcfe
♻️ ✅ uniformized throw macros
MelReyCG 6fc4b30
✅ removing _CTX macros from unit test
MelReyCG 77f9fcb
🐛 use streamed cause string to support mpi pointers formatting (not s…
MelReyCG 5747e7f
🐛 last mistake?
MelReyCG 10eb969
♻️ removing all GEOS_*_CTX macros (as GEOS_ERROR, GEOS_WARNING, GEOS_…
MelReyCG 2c5c5f5
🎨 UNCRUSTIFY
MelReyCG d1642e6
Merge remote-tracking branch 'origin/develop' into feature/amandinehr…
MelReyCG b3cbb99
Merge remote-tracking branch 'origin/develop' into feature/amandinehr…
MelReyCG 5781a78
✨ allowing to re-throw with GEOS_THROW* macros
MelReyCG db75e45
📦 shema
MelReyCG e07ab72
♻️ removing unintended BASE::
MelReyCG 754ed03
Merge remote-tracking branch 'origin/develop' into refactor/dudes/err…
arng40 83d0c0f
xsd
arng40 d5d8615
Merge remote-tracking branch 'origin/feature/amandinehry/create-yaml-…
arng40 1913059
🎨 uncrustify
MelReyCG 6692dd2
🐛 fix stream reset
MelReyCG 29f6fbe
⚰️ unused variable
MelReyCG d17972f
✨ removing last LVARRAY_* error logging macros
MelReyCG 759e9bb
Merge remote-tracking branch 'origin/develop' into feature/amandinehr…
MelReyCG 1b755b5
✨ removing last LVARRAY_* error logging macros
MelReyCG 3786db4
✅ adapting test with error cause addition
MelReyCG efa89d8
🐛 GPU Macros Support
MelReyCG 7915205
🎨 uncrustify
MelReyCG 14eefee
Merge branch 'develop' into feature/amandinehry/create-yaml-file-and-…
MelReyCG 500bbfd
🐛 GPU forgotten instruction
MelReyCG fa8fa54
🐛 added pragmas to manual shadow global logger instance
MelReyCG a29510b
Merge branch 'feature/amandinehry/create-yaml-file-and-structure-2' o…
MelReyCG c501a0f
🐛 wrong conversion on GPU
MelReyCG a07810f
Merge branch 'develop' into feature/amandinehry/create-yaml-file-and-…
MelReyCG cbb5322
centralize error output
arng40 c743e15
remvove deplucated log
arng40 dc13b33
Merge remote-tracking branch 'origin/feature/amandinehry/create-yaml-…
arng40 355e765
remove rank from arg
arng40 276606c
Merge remote-tracking branch 'origin/develop' into refactor/dudes/err…
arng40 3253a0b
fix after merge
arng40 cf0afc5
doc & fix
arng40 efcc52d
fix test
arng40 79b9791
test error
arng40 d951a16
initialize m_time
arng40 29dec26
add main for testUnits
arng40 6be688c
missing std::cout
arng40 62fa7ec
Merge remote-tracking branch 'origin/develop' into refactor/dudes/err…
arng40 5f9c74c
Merge remote-tracking branch 'origin/develop' into refactor/dudes/err…
arng40 95f631e
uncrust
arng40 df926d5
remove unecessary var
arng40 07b649a
doxygen
arng40 2fee6bf
clean
arng40 93594af
output only once
arng40 e430ae8
add "__" prefix
arng40 d5408c9
doxygen
arng40 17a394a
remove var duplication
arng40 061f502
fix format
arng40 450c3b0
add line number
arng40 d0ff49d
add stream to errorlogger + rename macro in logger
arng40 628e49c
reove debug log
arng40 f09d45f
fix test & cleanup
arng40 ec1feab
remove unecassery dep
arng40 419ba18
Merge branch 'develop' into refactor/dudes/error-context
arng40 9d5db85
fix test
arng40 2c9d6ce
Merge branch 'refactor/dudes/error-context' of https://github.com/GEO…
arng40 8708f2d
add geos::exception + refacto flushErrorMsg
arng40 3842caa
update exception inGEOS_THROW to geos::Exception
arng40 ae0b73c
update what() method
arng40 96bab37
remove unecessary cond
arng40 f47e62e
renaming and remove try catch from main
arng40 9289b82
add GeosExceptions
arng40 694e64e
clean up
arng40 b083853
remove unecessary include + some doc
arng40 b13149d
Merge remote-tracking branch 'origin/develop' into refactor/dudes/err…
arng40 e1b45f4
missong doc for GeosException
arng40 976aab5
include error
arng40 42c53b9
doxygen
arng40 16c9e77
update doxy
arng40 30baf23
remove include, + some clean
arng40 0aeddcf
fix cuda compil
arng40 ae60c25
move writeToAscii to cpp
arng40 5a52a75
doxygen
arng40 c48c52d
add log test
arng40 bbb72ff
fix log wrong formatting
arng40 855cf80
update log formatting & output
arng40 daec006
fix test
arng40 ab9895b
Uncrustify
arng40 60a1f3a
Merge branch 'develop' into refactor/dudes/error-context
arng40 4e74b00
Merge branch 'develop' into refactor/dudes/error-context
arng40 08973a3
reorder function + add constructor to ErrorContext
arng40 cee0059
uncrustify & doxygen
arng40 2a639a7
Merge branch 'develop' into refactor/dudes/error-context
arng40 a2b31d1
Merge branch 'develop' into refactor/dudes/error-context
arng40 d4db78b
improve writeToAscii
arng40 7df78ff
add context to std::exception
arng40 abc6d2a
fix encapsulation in ErrorLogger by adding BuilderPattern + improve c…
arng40 ec7ddc1
uncrustify
arng40 4a5b4fe
remove redundant lmsg in case of multiple rank
arng40 35d8707
missing const
arng40 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe a unit test for signals would be a good thing.