| 1 | package PLS::Server::Response::InvalidRequest; | ||
| 2 | |||
| 3 | 13 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 13 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 13 | ▶ | use parent 'PLS::Server::Response'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | =head1 NAME | ||
| 9 | |||
| 10 | PLS::Server::Response::InvalidRequest | ||
| 11 | |||
| 12 | =head1 DESCRIPTION | ||
| 13 | |||
| 14 | This is an error sent from the server to the client indicating that the | ||
| 15 | client sent an invalid request. | ||
| 16 | |||
| 17 | =cut | ||
| 18 | |||
| 19 | sub new | ||
| 20 | 1 | ▶ | { |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 21 | 1 | my ($class, $request) = @_; | |
| 22 | |||
| 23 | return | ||
| 24 | bless { | ||
| 25 | id => $request->{id}, | ||
| 26 | 1 | error => { | |
| 27 | code => -32_600, | ||
| 28 | message => 'Invalid request.' | ||
| 29 | } | ||
| 30 | }, $class; | ||
| 31 | } ## end sub new | ||
| 32 | |||
| 33 | 13 | 1; | |