Skip to content

Commit

Permalink
Make dtype_error a std::logic_error instead of a std::runtime_error.
Browse files Browse the repository at this point in the history
  • Loading branch information
vyasr committed Feb 6, 2023
1 parent 65c7f1f commit 88ac435
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cpp/include/cudf/utilities/error.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,20 +93,20 @@ struct fatal_cuda_error : public cuda_error {
* unsupported dtype. This exception should not be thrown directly and is
* instead thrown by the CUDF_EXPECTS or CUDF_FAIL macros.
*/
struct dtype_error : public std::runtime_error {
struct dtype_error : public std::logic_error {
/**
* @brief Constructs a dtype_error with the error message.
*
* @param message Message to be associated with the exception
*/
dtype_error(char const* const message) : std::runtime_error(message) {}
dtype_error(char const* const message) : std::logic_error(message) {}

/**
* @brief Construct a new logic error object with error message
*
* @param message Message to be associated with the exception
*/
dtype_error(std::string const& message) : std::runtime_error(message) {}
dtype_error(std::string const& message) : std::logic_error(message) {}
};

} // namespace cudf
Expand Down

0 comments on commit 88ac435

Please sign in to comment.