(&self, f: &mut std::fmt::Formatter<'_>)
| 192 | |
| 193 | impl std::fmt::Display for GrantError { |
| 194 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { |
| 195 | match self { |
| 196 | Self::Unknown => write!(f, "unknown or revoked sandbox token"), |
| 197 | Self::Expired(at) => write!(f, "sandbox token expired at {}", at.to_rfc3339()), |
| 198 | Self::NoTokenForView(view) => write!(f, "no live sandbox token for view '{view}'"), |
| 199 | Self::InvalidTtl => write!( |
| 200 | f, |
| 201 | "a sandbox token must last between {MIN_TTL_SECS} and {MAX_TTL_SECS} seconds" |
| 202 | ), |
| 203 | Self::InvalidCapabilities(why) => write!(f, "invalid sandbox capabilities: {why}"), |
| 204 | Self::Store(why) => write!(f, "sandbox grant store: {why}"), |
| 205 | } |
| 206 | } |
| 207 | } |
| 208 | |
| 209 | impl std::error::Error for GrantError {} |
nothing calls this directly
no outgoing calls
no test coverage detected