NAME

Data::AnyXfer::Elastic::Error

SYNOPSIS

eval { $index->search( body => {}) };

# handle the output
my $string = Data::AnyXfer::Elastic::Error->format($@);

# throw errors
Data::AnyXfer::Elastic::Error->croak($@);
Data::AnyXfer::Elastic::Error->carp($@);

DESCRIPTION

This module is designed to be a helper to handle Elasticsearch errors. Rather than outputting a large stacktrace these methods output something nicer.

Full error logging are forwared to /var/log/elasticsearch/ anyway.

COPYRIGHT

This software is copyright (c) 2019, Anthony Lucas.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.