diff options
author | crupest <crupest@outlook.com> | 2023-10-05 22:02:25 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2023-10-05 22:02:25 +0800 |
commit | 1550828518ff4719db88f35e088207816866a073 (patch) | |
tree | 217e35f48f6c08152bc607d804ad78c0a292e3cd /src/common/io/Stream.cpp | |
parent | 90feae14e708fbb0b313503a6e76cfbd77f94ce1 (diff) | |
download | cru-1550828518ff4719db88f35e088207816866a073.tar.gz cru-1550828518ff4719db88f35e088207816866a073.tar.bz2 cru-1550828518ff4719db88f35e088207816866a073.zip |
...
Diffstat (limited to 'src/common/io/Stream.cpp')
-rw-r--r-- | src/common/io/Stream.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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 <utility> @@ -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(); } |