Package com.miloun.cosmo
Class InvalidArgumentException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.miloun.cosmo.CosmoException
com.miloun.cosmo.InvalidArgumentException
- All Implemented Interfaces:
Serializable
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 Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidArgumentException
-