Sha256: ed2ea73715a8f87f09af0efcdd4b0fcbf9516a46b8a8b263ab0d7e1738c97ab7
Contents?: true
Size: 826 Bytes
Versions: 18
Compression:
Stored size: 826 Bytes
Contents
package Moose::Exception::TypeConstraintIsAlreadyCreated; our $VERSION = '2.2203'; use Moose; extends 'Moose::Exception'; with 'Moose::Exception::Role::TypeConstraint'; use Moose::Util::TypeConstraints 'find_type_constraint'; has 'package_defined_in' => ( is => 'ro', isa => 'Str', required => 1, ); sub _build_message { my $self = shift; my $type_name = $self->type_name; my $type = find_type_constraint( $type_name ); my $type_package_defined_in = $type->_package_defined_in; my $package_defined_in = $self->package_defined_in; return "The type constraint '$type_name' has already been created in $type_package_defined_in and cannot be created again in $package_defined_in"; } __PACKAGE__->meta->make_immutable; 1;
Version data entries
18 entries across 9 versions & 1 rubygems