Skip to main content

paper_utils/stream/
error.rs

1/*
2 * Copyright (c) Kia Shakiba
3 *
4 * This source code is licensed under the GNU AGPLv3 license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7
8use thiserror::Error;
9
10#[derive(Debug, PartialEq, Error)]
11pub enum StreamError {
12	#[error("Could not write to stream.")]
13	InvalidStream,
14
15	#[error("Stream closed unexpectedly.")]
16	ClosedStream,
17
18	#[error("Could not read data from stream.")]
19	InvalidData,
20}