WSError
Describes a REST error in a variable.
Syntax
WSError= "description"
- description defines the error description.
Usage
You use WSError
in an ATTRIBUTE()
clause of a public modular
variable to define a REST error. Then errors can be reused by different functions in your service by
updating the message at runtime.
Example using WSError in record variable
PUBLIC DEFINE userError RECORD ATTRIBUTE(WSError="User error")
message STRING
END RECORD