view lib/IMPL/Config/ActivationException.pm @ 427:09e0086a82a7 ref20150831 tip

Merge
author cin
date Tue, 15 May 2018 00:51:33 +0300
parents cc2cf8c0edc2
children
line wrap: on
line source

package IMPL::Config::ActivationException;
use strict;

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

use IMPL::Resources::Strings {
	message => "Error activating %serviceName%: %reason%"
};

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

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

1;