NAME
WWW::Keycloak::Error - Exception base class for WWW::Keycloak
VERSION
version 0.001
SYNOPSIS
use Scalar::Util qw( blessed );
my $client = eval { $admin->get_client($id) };
if ( blessed $@ && $@->isa('WWW::Keycloak::Error::API') && $@->is_not_found ) { ... }
DESCRIPTION
Every error WWW::Keycloak raises is an object of one of three subclasses: WWW::Keycloak::Error::Validation for wrong arguments, WWW::Keycloak::Error::Network when no HTTP answer arrived, and WWW::Keycloak::Error::API when Keycloak answered with an error. All of them stringify to their message, so plain $@ matching keeps working.
message
The human-readable description. The object stringifies to it.
throw
WWW::Keycloak::Error::Validation->throw( message => 'realm is required' );
Builds the exception and dies with it.
SUPPORT
Issues
Please report bugs and feature requests on GitHub at https://github.com/Getty/p5-www-keycloak/issues.
IRC
Join #kubernetes on irc.perl.org or message Getty directly.
CONTRIBUTING
Contributions are welcome! Please fork the repository and submit a pull request.
AUTHOR
Torsten Raudssus <getty@cpan.org>
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.