ncollide3d/query/error.rs
1use std::fmt;
2
3/// Error indicating that a query is not supported between certain shapes
4#[derive(Debug, Copy, Clone, Eq, PartialEq)]
5pub struct Unsupported;
6
7impl fmt::Display for Unsupported {
8 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
9 f.pad("query not supported between these shapes")
10 }
11}
12
13impl std::error::Error for Unsupported {}