Your IP : 216.73.216.74


Current Path : /lib64/perl5/vendor_perl/Search/Xapian/
Upload File :
Current File : //lib64/perl5/vendor_perl/Search/Xapian/AssertionError.pm

package Search::Xapian::AssertionError;

=head1 NAME

Search::Xapian::AssertionError -  AssertionError is thrown if a logical assertion inside Xapian fails.

=head1 DESCRIPTION

  In a debug build of Xapian, a failed assertion in the core library code
  will cause AssertionError to be thrown.

  This represents a bug in Xapian (either an invariant, precondition, etc
  has been violated, or the assertion is incorrect!)


=cut

use 5.006;
use strict;
use warnings;

require DynaLoader;

# For compatibility with XS Search::Xapian < 1.2.3 which still threw strings
# in some cases.
use overload '""' => sub { "Exception: ".$_[0]->get_msg };

our @ISA = qw(DynaLoader Search::Xapian::LogicError);

1;