Class UIResponse
java.lang.Object
com.inductiveautomation.ignition.common.messages.UIResponse
- All Implemented Interfaces:
UICallback
,Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
attempt
(FragileRunnable<?> method) Attempt to run the given method, catching any Throwable and adding it as an error to the UIResponse.void
getInfos()
getWarns()
void
void
static UIResponse
wrap
(Locale locale, Consumer<UIResponse> fx) Create a new UIResponse with the given locale, then run the consumer function.
-
Constructor Details
-
UIResponse
-
-
Method Details
-
wrap
Create a new UIResponse with the given locale, then run the consumer function. -
attempt
Attempt to run the given method, catching any Throwable and adding it as an error to the UIResponse. -
getLocale
- Specified by:
getLocale
in interfaceUICallback
-
warn
- Specified by:
warn
in interfaceUICallback
-
error
- Specified by:
error
in interfaceUICallback
-
info
- Specified by:
info
in interfaceUICallback
-
getWarns
-
getErrors
-
getInfos
-