Mercurial > pub > Impl
view Lib/IMPL/DOM/Schema/ValidationError.pm @ 63:76b878ad6596
Added serialization support for the IMPL::Object::List
More intelligent Exception message
Fixed encoding support in the actions
Improoved tests
Minor fixes
author | wizard |
---|---|
date | Mon, 15 Mar 2010 02:38:09 +0300 |
parents | 16ada169ca75 |
children | df6b4f054957 |
line wrap: on
line source
package IMPL::DOM::Schema::ValidationError; use strict; use warnings; use base qw(IMPL::Object); use IMPL::Class::Property; use IMPL::Class::Property::Direct; use IMPL::Resources::Format qw(FormatMessage); BEGIN { public _direct property Node => prop_get; public _direct property Schema => prop_get; public _direct property Source => prop_get; public _direct property Message => prop_get; } sub CTOR { my ($this,%args) = @_; $this->{$Node} = $args{Node} or die new IMPL::InvalidArgumentException("Node is a required parameter"); $this->{$Schema} = $args{Schema} if $args{Schema}; $this->{$Source} = $args{Source} if $args{Source}; $this->{$Message} = FormatMessage(delete $args{Message}, \%args) if $args{Message}; } 1;