Mercurial > pub > Impl
annotate Lib/IMPL/Test/FailException.pm @ 59:0f3e369553bd
Rewritten property implementation (probably become slower but more flexible)
Configuration infrastructure in progress (in the aspect of the lazy activation)
Initial concept for the code generator
author | wizard |
---|---|
date | Tue, 09 Mar 2010 02:50:45 +0300 |
parents | 16ada169ca75 |
children | 4267a2ac3d46 |
rev | line source |
---|---|
49 | 1 package IMPL::Test::FailException; |
2 use strict; | |
3 use warnings; | |
4 | |
5 use base qw(IMPL::Exception); | |
6 | |
7 __PACKAGE__->PassThroughArgs; | |
8 | |
9 sub toString { | |
10 my $this = shift; | |
11 | |
12 $this->Message . join("\n",'',map IMPL::Exception::indent($_,1), @{$this->Args} ); | |
13 } | |
14 | |
15 sub save { | |
16 my ($this,$ctx) = @_; | |
17 | |
18 $ctx->AddVar(Message => $this->Message); | |
19 $ctx->AddVar(Args => $this->Args) if @{$this->Args}; | |
20 } | |
21 | |
22 1; |