
XML::Genx::Constants - constants for genx

use XML::Genx::Constants qw( GENX_SEQUENCE_ERROR );
my $w = XML::Genx->new;
eval { $w->EndDocument };
die "programmer error"
if $@ && $w->LastErrorCode == GENX_SEQUENCE_ERROR;

This module provides constants for use with XML::Genx. They are mostly used for verifying which exception that has been thrown.

The following constants are available for exporting.

A full explanation of what the constants mean is at http://www.tbray.org/ongoing/When/200x/2004/02/20/GenxStatus#declarations.

Dominic Mitchell, <cpan (at) happygiraffe.net>
The genx library was created by Tim Bray http://www.tbray.org/.

Copyright (C) 2004 by Dominic Mitchell. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
The genx library is:
Copyright (c) 2004 by Tim Bray and Sun Microsystems. For copying permission, see http://www.tbray.org/ongoing/genx/COPYING.

@(#) $Id: Constants.pm 1119 2006-03-10 15:20:05Z dom $