binius_core/transcript/
error.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
// Copyright 2024 Irreducible Inc.

use binius_utils::serialization::Error as SerializationError;

#[derive(Debug, thiserror::Error)]
pub enum Error {
	#[error("Transcript is not empty, {remaining} bytes")]
	TranscriptNotEmpty { remaining: usize },
	#[error("Not enough bytes in the buffer")]
	NotEnoughBytes,
	#[error("Serialization error: {0}")]
	Serialization(#[from] SerializationError),
}