Color.InvalidHexError exception
(Color v0.4.0)
Copy Markdown
Raised when a hex color string cannot be parsed.
Has fields:
:hex— the offending input string.:reason—:bad_length(not 3, 4, 6 or 8 hex digits) or:bad_byte(one or more characters are not hex digits).