diff options
Diffstat (limited to 'src/base/io/Stream.cpp')
-rw-r--r-- | src/base/io/Stream.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/base/io/Stream.cpp b/src/base/io/Stream.cpp index d65bac46..1944ea7e 100644 --- a/src/base/io/Stream.cpp +++ b/src/base/io/Stream.cpp @@ -23,11 +23,11 @@ void StreamOperationNotSupportedException::CheckWrite(bool writable) { if (!writable) throw StreamOperationNotSupportedException(u"write"); } -StreamAlreadyClosedException::StreamAlreadyClosedException() +StreamClosedException::StreamClosedException() : Exception(u"Stream is already closed.") {} -void StreamAlreadyClosedException::Check(bool closed) { - if (closed) throw StreamAlreadyClosedException(); +void StreamClosedException::Check(bool closed) { + if (closed) throw StreamClosedException(); } Stream::Stream(SupportedOperations supported_operations) |