class X::TypeCheck

Error due to a failed type check
class X::TypeCheck is Exception { }

Error class thrown when a type check fails.

Methods

method operation

method operation(--> Str:D)

Returns a string description of the operation that failed, for example "assignment", "binding", "return".

method got

method got()

Returns the object that failed to type check

method expected

method expected()

Returns the type object against which the check failed.

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.