1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//! Error types for the terminal balls application.
//!
//! This module defines the application's error types using `thiserror` for
//! ergonomic error handling. All errors implement `std::error::Error` and
//! can be easily converted to `anyhow::Error` for propagation.
use Error;
/// Application-level errors for the physics simulation.
///
/// Each variant represents a distinct failure category, enabling precise
/// error handling and informative error messages.
/// Result type alias using `AppError` as the error type.
///
/// Use this throughout the application for consistent error handling.
pub type AppResult<T> = ;