Camelia

class X::Mixin::NotComposable

src
    class X::Mixin::NotComposable is Exception { }

 
Thrown when a mixin with infix does or but is done with a composer that cannot be used for mixin. For example
    class A { }
    1 but A 

 
dies with
    Cannot mix in non-composable type A into object of type Int

 
The compile-time equivalent of this error is L<X:CompositionNotComposable>

Methods

target

    method target()

 
Returns the target of the failed mixin operation.

rolish

    method rolish()

 
Returns the thing that could not act as a role for mixing it in

Perl 6 Tricks and Treats newsletter

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