Package org.tquadrat.foundation.exception
A collection of Exceptions that are defined for the Foundation library set.
Unless otherwise stated, null argument values will cause
methods and constructors of all classes in this package to throw an
Exception,
usually a
NullArgumentException,
but in some rare cases, it could be also a
NullPointerException.
-
Exception ClassesClassDescriptionUse the application error to signal the abort of an application.This is a specialised implementation for the
IllegalArgumentExceptionthat should be used instead of the latter in cases where a blank String is provided as an illegal argument value.This is a specialized implementation for theIllegalArgumentExceptionthat should be used instead of the latter in cases where aCharSequenceprovided as a method argument is too long according to some external constraints, like the column definition of a database.A generic wrapper for checked exceptions.This is a specialised implementation for theIllegalArgumentExceptionthat should be used instead of the latter in cases where an empty String, an empty array or an emptyCollectionargument is provided as an illegal argument value.This implementation ofRuntimeExceptionwill be thrown when an attempted operation is not valid for the current context.This implementation ofErrorshould be thrown in all cases where an exception was caught that seemed to be impossible to be thrown.This is the common base class for specialised implementations ofIllegalArgumentException.A "container" exception for exceptions thrown within lambda expressions.This is a specialised implementation for theIllegalArgumentExceptionthat should be used instead of the latter in cases wherenullis provided as an illegal argument value.This implementation ofErrorshould be called fromprivateconstructors of static classes (classes that does not allow any instances because they have only static methods or constants).Deprecated, for removal: This API element is subject to removal in a future version.This implementation ofErrorshould be thrown in all cases where an unlikely exception was caught.This is a specialised implementation forErrorthat is to be thrown especially from thedefaultbranch of aswitchstatement that uses anenumtype as selector.This is a specialised implementation for theIllegalArgumentExceptionthat is meant as the root for a hierarchy of exceptions caused by validation errors.

UnlikelyExceptionErrorbecause that name matches the intention better than the original name.