Status Request APIs for Ruby
Status Request APIs for Ruby are used to retrieve the status of an API requested to the server, and to get the error number and a string containing the error details in case there is a request failure. This page contains information about the Status Request Management APIs for Perl, including thedescription and syntax, and the input, input types, input description, and input return values.
NaElement::results_status
Prototype
results_status()
Description
Indicates success or failure of an API call, such as invoke and invoke_elem .
Return Value
◦
◦
NaElement::results_errno
Prototype
results_errno()
Description
Returns an error number of an API call, such as invoke or invoke_elem .
Return Value
◦
0 if the API call is successful
◦
NaElement::results_reason
Prototype
results_reason()
Description
Gets the reason for failure in a string.
The string is present if results_status does not return passed .
Return Value
A string describing the error
Parent topic: Ruby Core APIs

Was this topic helpful? Send comments to NetApp.