outsystems-ui - v2.30.0
Preparing search index...
OutSystems
OSUI
Utils
CreateApiResponse
Function CreateApiResponse
CreateApiResponse
(
APIHandler
:
APIHandler
)
:
string
Method that will set the ApiResponse structure
callback: the logic to run and ensure there is no error on it, otherwise, catch that error message
errorCode: the error code to show when the given callback didn't perform
hasValue: if the callback code will return a value
Parameters
APIHandler
:
APIHandler
{ callback, errorCode, hasValue = false }
Returns
string
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
outsystems-ui - v2.30.0
Loading...
Method that will set the ApiResponse structure