Sha256: d739bed23a17466b8dc890ceeeb8df9d160dcfcf03a5f27d015ecd10d971715d
Contents?: true
Size: 621 Bytes
Versions: 12
Compression:
Stored size: 621 Bytes
Contents
package Javonet::Core::Handler::CommandHandler::ValueHandler; use strict; use warnings FATAL => 'all'; use lib 'lib'; use Moose; use Nice::Try; use aliased 'Javonet::Core::Exception::Exception' => 'Exception'; extends 'Javonet::Core::Handler::CommandHandler::AbstractCommandHandler'; sub new { my $class = shift; my $self = { required_parameters_count => 1 }; return bless $self, $class; } sub process { my ($self, $command) = @_; try { return $command->{payload}[0]; } catch ( $e ) { return Exception->new($e); } } no Moose; 1;
Version data entries
12 entries across 12 versions & 1 rubygems