Color.InvalidColorError exception (Color v0.4.0)

Copy Markdown

Raised when Color.new/1,2 cannot interpret its input as a color.

Has fields:

  • :value — the input that could not be interpreted.

  • :space — the color space that was being constructed (or nil when the input failed before a space could be selected).

  • :reason — a short string describing why.