Class InvalidArgumentException

All Implemented Interfaces:
Serializable

public class InvalidArgumentException extends CosmoException
A caller passed an invalid argument — an unknown currency code, an unsupported width/unit, a bad enum value, …

Java's single inheritance forces a choice the other ports don't have to make (Python's variant is also a ValueError): this extends CosmoException so the library hierarchy stays catchable as one family, rather than extending IllegalArgumentException.

See Also:
  • Constructor Details

    • InvalidArgumentException

      public InvalidArgumentException(String message)