Sha256: 58c03db13c7c36aa8e3792a537bf3ee7ce5305c537627648d694a530b68a0f3e
Contents?: true
Size: 360 Bytes
Versions: 18
Compression:
Stored size: 360 Bytes
Contents
package Moose::Exception::CanOnlyConsumeRole; our $VERSION = '2.2203'; use Moose; extends 'Moose::Exception'; has 'role_name' => ( is => 'ro', isa => 'Str', required => 1, ); sub _build_message { my $self = shift; "You can only consume roles, ".$self->role_name." is not a Moose role"; } __PACKAGE__->meta->make_immutable; 1;
Version data entries
18 entries across 9 versions & 1 rubygems