ZErrorExt<T> extension
Extension that provides utility methods on ZError
to improve the end-user experience.
- on
-
- ZError<
T>
- ZError<
Properties
-
messages
→ List<
String> -
Available on ZError<
The list of localized issue messages associated with the error.T> , provided by the ZErrorExt extensionno setter - summary → String
-
Available on ZError<
All localized issue messages associated with the error joined by newline.T> , provided by the ZErrorExt extensionno setter
Methods
-
getMessagesFor(
String path) → List< String> ? -
Available on ZError<
Returns the list of localized issue messages for the givenT> , provided by the ZErrorExt extensionpath
, ornull
if no matching issues are found. -
getRawIssuesFor(
String path) → ZIssues? -
Available on ZError<
Returns the list of ZIssues for the givenT> , provided by the ZErrorExt extensionpath
, ornull
if no matching issues are found. -
getSummaryFor(
String path) → String? -
Available on ZError<
Returns localized issue messages joined by a newline for the givenT> , provided by the ZErrorExt extensionpath
, ornull
if no matching issues are found.