# Class CAValidityException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.io7m.cardant.model.CAValidityException

All Implemented Interfaces:
  `Serializable`

public final class CAValidityException extends RuntimeException
An exception indicating that parameters given to a model type are invalid. This is a more strongly-typed replacement for `IllegalArgumentException`.

See Also:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `CAValidityException(String message)`
  Construct an exception.
  `CAValidityException(String message, Exception e)`
  Construct an exception.

- ## Method Summary

  ### Methods inherited from class Throwable

  `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### CAValidityException

    public CAValidityException(String message)
    Construct an exception.
    Parameters:
      `message` - The message

  - ### CAValidityException

    public CAValidityException(String message, Exception e)
    Construct an exception.
    Parameters:
      `message` - The message
      `e` - The cause