Stroika Library 3.0d16
 
Loading...
Searching...
No Matches
EOFException.h
Go to the documentation of this file.
1/*
2 * Copyright(c) Sophist Solutions, Inc. 1990-2025. All rights reserved
3 */
4#ifndef _Stroika_Foundation_Streams_EOFException_h_
5#define _Stroika_Foundation_Streams_EOFException_h_ 1
6
7#include "Stroika/Foundation/StroikaPreComp.h"
8
9#include "Stroika/Foundation/Execution/Exceptions.h"
10
11/**
12 * \file
13 *
14 * \note Code-Status: <a href="Code-Status.md#Beta">Beta</a>
15 */
16
17namespace Stroika::Foundation::Streams {
18
19 /**
20 * \brief - the stream ended prematurely, so that the requested operation could not be completed.
21 *
22 * This is NOT thrown when the data is not just available yet. This is thrown when the data is known to
23 * never be available.
24 */
26 private:
28
29 public:
30 EOFException (bool partialReadCompleted = false);
31
32 public:
33 nonvirtual bool GetPartialReadCompleted () const;
34
35 public:
36 /**
37 */
38 static const EOFException kThe;
39
40 private:
41 bool fPartialReadCompleted_{false};
42 };
43 inline const EOFException EOFException::kThe;
44
45}
46
47/*
48 ********************************************************************************
49 ***************************** Implementation Details ***************************
50 ********************************************************************************
51 */
52#include "EOFException.inl"
53
54#endif /*_Stroika_Foundation_Streams_EOFException_h_*/
the stream ended prematurely, so that the requested operation could not be completed.