view Lib/IMPL/Test/FailException.pm @ 281:a8dbddf491dd

refactoring *IMPL::declare reset abstractProps static property after implementing these props *IMPL::Serialization: fixed bug with multiple text parts inside one node *IMPL::Web::Handler::TTView: removed obsolete property 'location' from 'view' template variable
author cin
date Mon, 11 Feb 2013 00:58:22 +0400
parents 4267a2ac3d46
children
line wrap: on
line source

package IMPL::Test::FailException;
use strict;
use warnings;

use parent qw(IMPL::Exception);

__PACKAGE__->PassThroughArgs;

sub toString {
    my $this = shift;
    
    $this->Message . join("\n",'',map IMPL::Exception::indent($_,1), @{$this->Args} );
}

sub save {
    my ($this,$ctx) = @_;
    
    $ctx->AddVar(Message => $this->Message);
    $ctx->AddVar(Args => $this->Args) if @{$this->Args};
}

1;