lookup_err

Returns an error when a requested resource is not found or when an index is out-of-range.

This function does not generate a change.

Function

lookup_err([message])

Arguments

Argument Type Description
message str (optional) Alternative error message.

Return value

An error value (in a client response, an error value will be packed as a string value with the error message).

Example

This code shows lookup_err():

lookup_err();

Return value in JSON format

"requested resource not found"