[ library(error) | Reference Manual | Alphabetic Index ]
domain_error(?Domain, ?Culprit)
throw error(domain_error(Domain,Culprit), _)
- Domain
- Specification of the expected domain
- Culprit
- The term that caused the error
Examples
domain_error(non_empty_list, [])