Graphics::Toolkit::Color::Manual::Error(3) User Contributed Perl Documentation NAME Graphics::Toolkit::Color::Manual::Error - GTC error handling SYNOPSIS This manual page explains how GTC error messages behave and how to change it to a preferred behaviour. MODES If a user does misspell a method argument or passes bad data, he will get an error. But GTC knows 5 ways to deliver that error. carp Warning with a stack trace from the perspective of the GTC caller via "carp" (Carp). This is the default mode. croak Exception with a stack trace that has to be dealt with using something alike Try::Tiny or "eval". say Normal string to STDOUT from the perspective of the GTC method that has the issue with bad input. die Exception with info from the perspective of the GTC method. quiet The error will be suppressed. Please check if there is at least a GTC object returned. SETUP The error is chosen with the use-statement that is also responsible for all symbol imports. use Graphics::Toolkit::Color qw/color/, error => 'quiet'; INTRODUCTION AUTHOR Herbert Breunung, COPYRIGHT Copyright 2026 Herbert Breunung. LICENSE This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.42.2 2026-06-20 Graphics::Toolkit::Color::Manual::Error(3)