Skip to main content

oxiphysics_softbody/
error.rs

1// Copyright 2026 COOLJAPAN OU (Team KitaSan)
2// SPDX-License-Identifier: Apache-2.0
3
4//! Error types for oxiphysics-softbody
5
6use thiserror::Error;
7
8/// Main error type for the softbody module
9#[derive(Debug, Error)]
10pub enum Error {
11    /// Generic error
12    #[error("{0}")]
13    General(String),
14}
15
16/// Result type alias
17pub type Result<T> = std::result::Result<T, Error>;