From 927f033a39a6344307c2dabb25e9ee7c9bc24b9e Mon Sep 17 00:00:00 2001 From: Peter du Marchie van Voorthuysen Date: Tue, 21 Jan 2020 23:05:24 +0100 Subject: [PATCH] Document X::Cannot::Lazy --- doc/Type/X/Cannot/Lazy.pod6 | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 doc/Type/X/Cannot/Lazy.pod6 diff --git a/doc/Type/X/Cannot/Lazy.pod6 b/doc/Type/X/Cannot/Lazy.pod6 new file mode 100644 index 000000000..30708de2f --- /dev/null +++ b/doc/Type/X/Cannot/Lazy.pod6 @@ -0,0 +1,28 @@ +=begin pod :kind("Type") :subkind("class") :category("exception") + +=TITLE class X::Cannot::Lazy + +=SUBTITLE Error due to inappropriate usage of a lazy list + + class X::Cannot::Lazy is Exception { } + +Error thrown (or wrapped in a C) when inappropriately using a +list that C<.is-lazy>. Such a list can be infinite which would make it +impossible to iterate over all values. + +=head1 Methods + +=head2 method action + + method action() + +Verbal description of the inappropriate action. + +=head2 method what + + method what() + +Returns the type that was the target of the action, if it was not the +lazy list itself. + +=end pod