my $into = $self->name;
my $original = $into->can($name)
- or $self->throw_error("The method '$name' is not found in the inheritance hierarchy for class $into");
+ or $self->throw_error("The method '$name' was not found in the inheritance hierarchy for $into");
my $modifier_table = $self->{modifiers}{$name};
if ( !$method || !Data::Util::subroutine_modifier($method) ) {
unless ($method) {
$method = $into->can($name)
- or Carp::confess("The method '$name' is not found in the inheritance hierarchy for class $into");
+ or $self->throw_error("The method '$name' was not found in the inheritance hierarchy for $into");
}
$method = Data::Util::modify_subroutine( $method,
$type => [$code] );