NAME

Langertha::Holmgang::Error - A loud refusal of input: the field path and the reason

VERSION

version 0.001

DESCRIPTION

The refusal the loader, the structure checks and lint throw: not a program error but input that does not hold, named by its field. Ported from cai-platform's CAI::Platform::Refusal.

field

Required. The refused field as a path, e.g. cases/c1.yaml: rules[0].regex or threshold.pass_rate.

reason

Required. Why the field was refused, for logs, authors and tests.

throw

Langertha::Holmgang::Error->throw( 'cases/c1.yaml: title' => 'text missing' );

Dies with a new refusal. As a string it reads field: reason.

caught

my $refusal = Langertha::Holmgang::Error->caught($@) or die $@;

Returns $err when it is a refusal, else undef.

SUPPORT

Issues

Please report bugs and feature requests at https://github.com/Getty/langertha-holmgang/issues.

IRC

Join #langertha on irc.perl.org or message Getty directly.

CONTRIBUTING

Contributions are welcome! Please fork the repository and submit a pull request.

AUTHOR

Torsten Raudssus <torsten@raudssus.de>

COPYRIGHT AND LICENSE

This software is copyright (c) 2026 by Torsten Raudssus <torsten@raudssus.de> https://raudssus.de/.

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