diff --git a/src/core.c/Dateish.pm6 b/src/core.c/Dateish.pm6 index 72b862cdd7b..4e4e61d71d5 100644 --- a/src/core.c/Dateish.pm6 +++ b/src/core.c/Dateish.pm6 @@ -49,7 +49,7 @@ my role Dateish { # shortcut for out of range throwing method !oor($what, $got, $range) { - X::OutOfRange.new(:$what, :$got, :$range).throw + X::Temporal::OutOfRange.new(:$what, :$got, :$range).throw } # shortcut for invalid format throwing diff --git a/src/core.c/Exception.pm6 b/src/core.c/Exception.pm6 index 78673781fd0..0a8b7f1b832 100644 --- a/src/core.c/Exception.pm6 +++ b/src/core.c/Exception.pm6 @@ -2968,6 +2968,9 @@ my class X::DateTime::InvalidDeltaUnit does X::Temporal { "Cannot use unit $.unit with Date.delta"; } } +my class X::Temporal::OutOfRange is X::OutOfRange does X::Temporal { +} + my class X::Eval::NoSuchLang is Exception { has $.lang;