From 1550828518ff4719db88f35e088207816866a073 Mon Sep 17 00:00:00 2001 From: crupest Date: Thu, 5 Oct 2023 22:02:25 +0800 Subject: ... --- src/common/io/Stream.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/common/io/Stream.cpp') diff --git a/src/common/io/Stream.cpp b/src/common/io/Stream.cpp index 07677fa8..97669944 100644 --- a/src/common/io/Stream.cpp +++ b/src/common/io/Stream.cpp @@ -1,4 +1,5 @@ #include "cru/common/io/Stream.h" +#include "cru/common/Exception.h" #include "cru/common/Format.h" #include @@ -22,6 +23,9 @@ void StreamOperationNotSupportedException::CheckWrite(bool writable) { if (!writable) throw StreamOperationNotSupportedException(u"write"); } +StreamAlreadyClosedException::StreamAlreadyClosedException() + : Exception(u"Stream is already closed.") {} + void StreamAlreadyClosedException::Check(bool closed) { if (closed) throw StreamAlreadyClosedException(); } -- cgit v1.2.3