package Moose::Exception::NoParentGivenToSubtype;
our $VERSION = '2.2015';

use Moose;
extends 'Moose::Exception';

has 'name' => (
    is       => 'ro',
    isa      => 'Str',
    required => 1
);

sub _build_message {
    "A subtype cannot consist solely of a name, it must have a parent";
}

__PACKAGE__->meta->make_immutable;
1;