package Moose::Exception::CanExtendOnlyClasses;
BEGIN {
  $Moose::Exception::CanExtendOnlyClasses::AUTHORITY = 'cpan:STEVAN';
}
$Moose::Exception::CanExtendOnlyClasses::VERSION = '2.1206';
use Moose;
extends 'Moose::Exception';
with 'Moose::Exception::Role::Role';

sub _build_message {
    my $self      = shift;
    my $role_name = $self->role_name;
    return "You cannot inherit from a Moose Role ($role_name)";
}

1;
