Camelia

class X::TypeCheck

src
    class X::TypeCheck is Exception { }

 
Error class thrown when a type check fails.

Methods

operation

    method operation() returns Str:D

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

got

    method got()

 
Returns the object that failed to type check

expected

    method expected()

 
Returns the type object against which the check failed.

Perl 6 Tricks and Treats newsletter

Register to the free newsletter now, and get updates and news.
Email:
Name: