
domain_error(?Domain, ?Culprit)

   throw error(domain_error(Domain,Culprit), _)

Arguments
   Domain              Specification of the expected domain
   Culprit             The term that caused the error

Type
   library(error)

Examples
   domain_error(non_empty_list, [])


