The Perl Advent Calendar needs more articles for 2022. Submit your idea today!
package Moose::Exception::NeitherRoleNorRoleNameIsGiven;
our $VERSION = '2.2201';

use Moose;
extends 'Moose::Exception';

sub _build_message {
    "You need to give role or role_name or both";
}

__PACKAGE__->meta->make_immutable;
1;