InvalidArgumentException
extends CosmoException
in package
A caller passed an invalid argument — a typo'd option key, an unknown currency code, an unsupported width/unit, a bad enum value, … A bug to fix in the calling code, not a condition to catch and recover from.
Extends CosmoException, so catch (CosmoException) catches all library errors.