Graphic...l::Error(3)

πŸ“¦ version 2.22, in arch rolling

πŸ’… NAME

Graphics::Toolkit::Color::Manual::Error β€” aka the GTC error handling era πŸŽ€


✨ SYNOPSIS ✨

okay so this manual page is literally here to explain how GTC error messages behave, and how you can switch them up to whatever behaviour you vibe with more. that's it. that's the whole thing. 🫢


🌸 MODES 🌸

so if a user misspells a method argument or passes in bad data, they're gonna get an error. no way around it bestie. but β€” and this is the iconic part β€” GTC knows 5 whole ways to deliver that error to you. five. a whole menu. πŸ“

🐟 carp

a warning with a stack trace from the perspective of the GTC caller, delivered via carp (Carp). this one is the default mode, so it's giving main character energy whether you asked for it or not. πŸ‘‘

😀 croak

an exception with a stack trace that you absolutely have to deal with, using something alike Try::Tiny or eval. it's not gonna quietly go away. you gotta handle it. no cap. πŸ’€

πŸ—£οΈ say

just a normal string to STDOUT, from the perspective of the GTC method that has the issue with the bad input. lowkey chill. 🌈

☠️ die

an exception with info from the perspective of the GTC method. dramatic and to the point. πŸ’…

🀫 quiet

the error gets suppressed entirely. so like… please check that there's at least a GTC object returned, okay? because otherwise you're just out here with nothing. πŸ™ˆ


πŸŽ€ SETUP πŸŽ€

you pick the error mode with the same use-statement that's also responsible for all the symbol imports. one statement, two jobs, multitasking queen. πŸ’–

use Graphics::Toolkit::Color qw/color/, error => 'quiet';

πŸ¦‹ INTRODUCTION πŸ¦‹

this section is literally just a heading with no content under it. we respect the aesthetic choice. moving on bestie. ✨


πŸ‘‘ AUTHOR πŸ‘‘

Herbert Breunung, <lichtkind@cpan.org> 🫢


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. πŸ’…


and that's the whole page, bestie β€” sign-off time: this little doc came to you courtesy of perl v5.42.2, dated 2026-06-21. iykyk 🧚⭐

πŸ“¦ where this page comes from