POE::Filter::JSON::Incr::Error - Input error marker


POE-Filter-JSON-Incr documentation  | view source Contained in the POE-Filter-JSON-Incr distribution.

Index


NAME

Top

POE::Filter::JSON::Incr::Error - Input error marker

SYNOPSIS

Top

	# enable the creation of error objects
	POE::Filter::JSON::Incr->new(
		errors => 1,
	);

	# and in your event handler, check for them:
	if ( blessed($_[ARG0]) and $_[ARG0]->isa("POE::Filter::JSON::Incr::Error") ) {
		warn "input error: " . $_[ARG0]->error;
	} else {
		# $_[ARG0] is JSON data
	}

DESCRIPTION

Top

This is just a simple container for errors and the chunk of text that created the error.

ATTRIBUTES

Top

error

The value of $@, what JSON died with.

chunk

The chunk of text that caused the error


POE-Filter-JSON-Incr documentation  | view source Contained in the POE-Filter-JSON-Incr distribution.