class X::Eval::NoSuchLang

Error due to specifying an unknown language for EVAL
class X::Eval::NoSuchLang is Exception { }

Error thrown when EVAL($str, :$lang) specifies a language that the compiler does not know how to handle.

For example

EVAL 'boo', lang => "bar";
    CATCH { default { put .^name, ': ', .Str } };
    # OUTPUT: «X::Eval::NoSuchLang: No compiler available for language 'bar'␀»

Methods

method lang

method lang()

Returns the language that EVAL did not know how to handle.

The Camelia image is copyright 2009 by Larry Wall. "Raku" is a trademark of the Yet Another Society. All rights reserved.

Built with Podlite β€” the markup and publishing tools behind this site.