| 1 | ##---------------------------------------------------------------------------- | ||||||||||
| 2 | ## WebSocket Client & Server - ~/lib/WebSocket/Exception.pm | ||||||||||
| 3 | ## Version v0.1.0 | ||||||||||
| 4 | ## Copyright(c) 2023 DEGUEST Pte. Ltd. | ||||||||||
| 5 | ## Author: Jacques Deguest <jack@deguest.jp> | ||||||||||
| 6 | ## Created 2023/04/30 | ||||||||||
| 7 | ## Modified 2023/04/30 | ||||||||||
| 8 | ## You can use, copy, modify and redistribute this package and associated | ||||||||||
| 9 | ## files under the same terms as Perl itself. | ||||||||||
| 10 | ##---------------------------------------------------------------------------- | ||||||||||
| 11 | package WebSocket::Exception; | ||||||||||
| 12 | BEGIN | ||||||||||
| 13 | 4 | ▶ | { | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 14 | 4 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 15 | 4 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 16 | 4 | ▶ | use parent qw( Module::Generic::Exception ); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 17 | 4 | ▶ | use vars qw( $VERSION ); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 18 | 4 | our $VERSION = 'v0.1.0'; | |||||||||
| 19 | }; | ||||||||||
| 20 | |||||||||||
| 21 | 4 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 22 | 4 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 23 | |||||||||||
| 24 | sub init | ||||||||||
| 25 | 9 | ▶ | { | ||||||||
|
Subroutine
init: called CC=2 SCAR=7.0
Pod
documented
| |||||||||||
| 26 | 9 | my $self = shift( @_ ); | |||||||||
| 27 | 9 | $self->{_init_strict_use_sub} = 1; | |||||||||
| 28 | 9 | ▶ | $self->SUPER::init( @_ ) || return( $self->pass_error ); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 29 | 9 | return( $self ); | |||||||||
| 30 | } | ||||||||||
| 31 | |||||||||||
| 32 | 4 | 1; | |||||||||
| 33 | # NOTE: POD | ||||||||||
| 34 | __END__ | ||||||||||