From 8c2245ff0b9f9a2b30d9f1b3956a551695dd0e11 Mon Sep 17 00:00:00 2001 From: Nick Alexander Date: Wed, 6 Jun 2018 16:49:15 -0700 Subject: [PATCH] Pre: Add top-level NotYetImplemented error. --- public-traits/errors.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/public-traits/errors.rs b/public-traits/errors.rs index 2013ed71..561a8d2c 100644 --- a/public-traits/errors.rs +++ b/public-traits/errors.rs @@ -88,6 +88,11 @@ pub enum MentatError { #[fail(display = "{}", _0)] IoError(#[cause] std::io::Error), + /// We're just not done yet. Message that the feature is recognized but not yet + /// implemented. + #[fail(display = "not yet implemented: {}", _0)] + NotYetImplemented(String), + // It would be better to capture the underlying `rusqlite::Error`, but that type doesn't // implement many useful traits, including `Clone`, `Eq`, and `PartialEq`. #[fail(display = "SQL error: {}", _0)]