ariadnetor_tensor/error.rs
1use thiserror::Error;
2
3/// Errors raised by tensor construction and manipulation.
4#[derive(Debug, Error)]
5pub enum TensorError {
6 /// An argument violated a precondition of the called operation; the
7 /// payload describes which argument and why.
8 #[error("Invalid argument: {0}")]
9 InvalidArgument(String),
10}