aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Reaction/InterfaceModel
diff options
context:
space:
mode:
authorgroditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7>2009-01-09 00:22:00 +0000
committergroditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7>2009-01-09 00:22:00 +0000
commiteb52e5952c914864f58a122b7587c7383844a790 (patch)
treeb8d2d780c7ea731cad2a5e19cc879f14c2bf0fd2 /lib/Reaction/InterfaceModel
parente0a6ddb2fad8960edbc1104cdb7c909acf5b7b00 (diff)
downloadreaction-eb52e5952c914864f58a122b7587c7383844a790.tar.gz
reaction-eb52e5952c914864f58a122b7587c7383844a790.zip
move the error to the action
Diffstat (limited to 'lib/Reaction/InterfaceModel')
-rw-r--r--lib/Reaction/InterfaceModel/Action.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Reaction/InterfaceModel/Action.pm b/lib/Reaction/InterfaceModel/Action.pm
index 12234ec..06ab55a 100644
--- a/lib/Reaction/InterfaceModel/Action.pm
+++ b/lib/Reaction/InterfaceModel/Action.pm
@@ -8,6 +8,11 @@ use Reaction::Class;
use namespace::clean -except => [ qw(meta) ];
+has error_message => (
+ is => 'rw',
+ isa => 'Str',
+ metaclass => 'Reaction::Meta::Attribute'
+);
has target_model => (
is => 'ro',
required => 1,