REBOL 3 Docs Guide Concepts Functions Datatypes Errors
  TOC < Back Next >   Updated: 6-Feb-2009 Edit History  

REBOL 3 Errors: expect-arg

A function was provided an argument of a datatype it wasn't expecting.

Message:

[:arg1 "expected" :arg2 "argument of type:" :arg3]

Example:

f: func [b [block!]][probe b]
filter-error try [f "string"]
** Script Error: f expected b argument of type: block
** Where: f "string"


  TOC < Back Next > REBOL.com - WIP Wiki Feedback Admin