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.
This is PR 2 of 3.
Contained within this PR is the necessary upgrade to the exception infrastructure to proceed with improving internal exception messages.
The third PR aims to provide the improved internal exception messages based on the proposal table in #184.
(The first PR was the upstream refresh of the tinyformat library.)
Changes:
Rcpp::stop
,Rcpp::warning
, andRCPP_ADVANCED_EXCEPTION_CLASS
Rcpp::stop
andRcpp::warning
functions fromexception.h
and moved them into C++98 exception headerRCPP_EXCEPTION_CLASS
macro to have a default ctor that returns a default constructed string to allow for promotion without breaking present use.no_such_slot
andnot_a_closure
to useRCPP_EXCEPTION_CLASS
fromRCPP_SIMPLE_EXCEPTION_CLASS
.index_out_of_bounds
andnot_compatible
to useRCPP_ADVANCED_EXCEPTION_CLASS
.no_such_field
andreference_creation_class
for potential removal.