From b2a331aa527bdd5f4d91727904cc5c66fe897d62 Mon Sep 17 00:00:00 2001 From: crupest Date: Mon, 24 Jun 2024 00:06:25 +0800 Subject: Done Stream refactor. NEED TEST: BufferStream, AutoReadStream, SubProcess. --- include/cru/base/io/Stream.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include/cru/base/io/Stream.h') diff --git a/include/cru/base/io/Stream.h b/include/cru/base/io/Stream.h index e0b61627..0965cf22 100644 --- a/include/cru/base/io/Stream.h +++ b/include/cru/base/io/Stream.h @@ -26,11 +26,11 @@ class CRU_BASE_API StreamOperationNotSupportedException : public Exception { String operation_; }; -class CRU_BASE_API StreamAlreadyClosedException : public Exception { +class CRU_BASE_API StreamClosedException : public Exception { public: - StreamAlreadyClosedException(); + StreamClosedException(); - CRU_DEFAULT_DESTRUCTOR(StreamAlreadyClosedException) + CRU_DEFAULT_DESTRUCTOR(StreamClosedException) static void Check(bool closed); }; @@ -117,7 +117,7 @@ class CRU_BASE_API Stream : public Object { bool GetClosed() { return closed_; } void SetClosed(bool closed) { closed_ = closed; } - void CheckClosed() { StreamAlreadyClosedException::Check(closed_); } + void CheckClosed() { StreamClosedException::Check(closed_); } private: std::optional supported_operations_; -- cgit v1.2.3