Skip to content

Refactor IO exceptions: remove ios_defs::failure and introduce io_error base class#115

Merged
liwei-cpp merged 1 commit into
mainfrom
refactor/io-exception-refactor
Apr 24, 2026
Merged

Refactor IO exceptions: remove ios_defs::failure and introduce io_error base class#115
liwei-cpp merged 1 commit into
mainfrom
refactor/io-exception-refactor

Conversation

@liwei-cpp
Copy link
Copy Markdown
Owner

  • Removed ios_defs::failure from include/io/io_base.h
  • Introduced IOv2::io_error as a base class for all IO exceptions in include/common/defs.h
  • Updated device_error, cvt_error, stream_error, and eof_error to inherit from io_error
  • Corrected exception types thrown in io_state_and_exp::clear()
  • Updated tests to reflect the new exception hierarchy

…or base class

- Removed ios_defs::failure from include/io/io_base.h
- Introduced IOv2::io_error as a base class for all IO exceptions in include/common/defs.h
- Updated device_error, cvt_error, stream_error, and eof_error to inherit from io_error
- Corrected exception types thrown in io_state_and_exp::clear()
- Updated tests to reflect the new exception hierarchy
@liwei-cpp liwei-cpp linked an issue Apr 24, 2026 that may be closed by this pull request
12 tasks
@liwei-cpp liwei-cpp merged commit 4aad924 into main Apr 24, 2026
4 checks passed
@liwei-cpp liwei-cpp deleted the refactor/io-exception-refactor branch April 24, 2026 14:57
liwei-cpp added a commit that referenced this pull request May 2, 2026
Refactor IO exceptions: remove ios_defs::failure and introduce io_error base class
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.

[Refactor] Remove the ios_defs::failure Exception Class

1 participant