---
name: "Graphics::Toolkit::Color::Manual::Error"
section: "3pm"
platform: "linux"
package: "perl-graphics-toolkit-color"
version: "2.22-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/Graphics::Toolkit::Color::Manual::Error"
---

# Graphics::Toolkit::Color::Manual::Error(3pm)

GTC error handling

## 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, \<lichtkind@cpan.org\>

## 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.
