view lib/IMPL/Config/ServiceNotFoundException.pm @ 420:df591e3afd10 ref20150831

sync
author cin
date Sat, 25 Feb 2017 22:35:26 +0300
parents cc2cf8c0edc2
children
line wrap: on
line source

package IMPL::Config::ServiceNotFoundException;
use strict;

use IMPL::declare {
    base => [
        'IMPL::AppException' => undef
    ],
    props => [
        serviceName     => 'ro',
    ]
};

use IMPL::Resources::Strings {
    message => "Service %serviceName% not found"
};

sub CTOR {
    my ( $this, %args ) = @_;

    $this->$_( $args{$_} ) foreach grep exists $args{$_}, qw(
      serviceName
    );
}

1;