
type_error(?Type, ?Culprit)

   throw error(type_error(Type,Culprit), _)

Arguments
   Type                Specification of the expected type
   Culprit             The term that caused the error

Type
   library(error)

Examples
   type_error(list, [foo|bar])


