<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">package Moose::Exception::CircularReferenceInAlso;
our $VERSION = '2.2011';

use Moose;
extends 'Moose::Exception';

has 'also_parameter' =&gt; (
    is       =&gt; 'ro',
    isa      =&gt; 'Str',
    required =&gt; 1
);

has 'stack' =&gt; (
    is       =&gt; 'ro',
    isa      =&gt; 'ArrayRef',
    required =&gt; 1
);

sub _build_message {
    my $self = shift;
    my $also_member = $self-&gt;also_parameter;

    my @stack = @{$self-&gt;stack};
    my $existing_stack = join( ', ', @stack);

    return "Circular reference in 'also' parameter to Moose::Exporter between "
           ."$existing_stack and $also_member";
}

__PACKAGE__-&gt;meta-&gt;make_immutable;
1;
</pre></body></html>