Server : Apache/2.4.43 (Win64) OpenSSL/1.1.1g PHP/7.4.6 System : Windows NT USER-PC 6.1 build 7601 (Windows 7 Professional Edition Service Pack 1) AMD64 User : User ( 0) PHP Version : 7.4.6 Disable Function : NONE Directory : C:/xampp/perl/vendor/lib/Moose/Error/ |
package Moose::Error::Confess; BEGIN { $Moose::Error::Confess::AUTHORITY = 'cpan:STEVAN'; } { $Moose::Error::Confess::VERSION = '2.0604'; } use strict; use warnings; use base qw(Moose::Error::Default); sub new { my ( $self, @args ) = @_; $self->create_error_confess(@args); } sub _inline_new { my ( $self, %args ) = @_; my $depth = ($args{depth} || 0) - 1; return 'Moose::Error::Util::create_error_confess(' . 'message => ' . $args{message} . ', ' . 'depth => ' . $depth . ', ' . ')'; } 1; # ABSTRACT: Prefer C<confess> =pod =head1 NAME Moose::Error::Confess - Prefer C<confess> =head1 VERSION version 2.0604 =head1 SYNOPSIS # Metaclass definition must come before Moose is used. use metaclass ( metaclass => 'Moose::Meta::Class', error_class => 'Moose::Error::Confess', ); use Moose; # ... =head1 DESCRIPTION This error class uses L<Carp/confess> to raise errors generated in your metaclass. =head1 AUTHOR Moose is maintained by the Moose Cabal, along with the help of many contributors. See L<Moose/CABAL> and L<Moose/CONTRIBUTORS> for details. =head1 COPYRIGHT AND LICENSE This software is copyright (c) 2012 by Infinity Interactive, Inc.. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. =cut __END__