Download Compaq`s Web Language A Programming Language for the Web

Transcript
WebL Quick Reference
TABLE 47. Exceptions
thrown by the built-in functions
Function
Exceptions
PostURL(url: string): page)
PostURL(url: string, params:
{object, string}): page)
PostURL(url: string, params:
{object, string}, headers: object):
page)
PostURL(url: string, params:
{object, string}, headers: object,
options: object): page)
ArgumentError - Incorrect or wrong
number of arguments
Pretty(p: page): string
Pretty(q: piece): string
ArgumentError - Incorrect or wrong
number of arguments
Print(x, y, z, ...): nil
No exceptions are thrown
PrintLn(x, y, z, ...): nil
No exceptions are thrown
ReadLn(): string
ArgumentError - Incorrect or wrong
number of arguments
NetException - Fetch failed, "statuscode" field of the exception
object indicates the reason
IOException - An IO exception
occurred during function execution
IOException - An IO exception
occurred during function execution
190
Realp(x): bool
ArgumentError - Incorrect or wrong
number of arguments
Replace(a: pieceset, b: pieceset): nil
ArgumentError - Incorrect or wrong
number of arguments
Rest(l: list): list
ArgumentError - Incorrect or wrong
number of arguments
WebL - A Programming Language for the Web