aboutsummaryrefslogtreecommitdiff
path: root/include/cru/common/io/Stream.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/cru/common/io/Stream.h')
-rw-r--r--include/cru/common/io/Stream.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/cru/common/io/Stream.h b/include/cru/common/io/Stream.h
index 66be4468..f833b0b9 100644
--- a/include/cru/common/io/Stream.h
+++ b/include/cru/common/io/Stream.h
@@ -2,12 +2,23 @@
#include "../Base.h"
+#include "../Exception.h"
#include "../String.h"
#include <cstddef>
#include <vector>
namespace cru::io {
+class CRU_BASE_API StreamAlreadyClosedException : public Exception {
+ public:
+ using Exception::Exception;
+
+ CRU_DEFAULT_COPY(StreamAlreadyClosedException)
+ CRU_DEFAULT_MOVE(StreamAlreadyClosedException)
+
+ CRU_DEFAULT_DESTRUCTOR(StreamAlreadyClosedException)
+};
+
class CRU_BASE_API Stream : public Object {
public:
enum class SeekOrigin { Current, Begin, End };