summaryrefslogtreecommitdiffstats
path: root/src/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs
index d450146..39d482f 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -33,6 +33,11 @@ error_chain! {
display("The passed argument is not an amount: {:?}", tt)
}
+ ArgumentErrorNotAMoment(name: &'static str) {
+ description("Argument Error: Not a moment TimeType object")
+ display("The passed argument is not a moment, but a {}", name)
+ }
+
CannotCalculateEndOfYearOn(tt: TimeType) {
description("Argument Error: Cannot calculate end-of-year")
display("Argument Error: Cannot calculate end-of-year on a {:?}", tt)