WebSocket::Exception - WebSocket Exception Class
use WebSocket::Exception; my $ex = WebSocket::Connection->new({ code => 1011, message => 'Invalid property provided', }); print( "Error stack trace: ", $ex->stack_trace, "\n" );
v0.1.0
This is the exception class for WebSocket. It inherits all is methods from Module::Generic::Exception.
The error object can be stringified or compared.
When stringified, it provides the error message along with precise information about where the error occurred and a stack trace.
WebSocket::Exception objects are created by "error" in Module::Generic method.
Jacques Deguest <jack@deguest.jp>
perl
Copyright(c) 2021-2023 DEGUEST Pte., Ltd.
You can use, copy, modify and redistribute this package and associated files under the same terms as Perl itself.
To install WebSocket, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebSocket
CPAN shell
perl -MCPAN -e shell install WebSocket
For more information on module installation, please visit the detailed CPAN module installation guide.