ZErrorExt<T> extension

Extension that provides utility methods on ZError to improve the end-user experience.

on
  • ZError<T>

Properties

messages List<String>

Available on ZError<T>, provided by the ZErrorExt extension

The list of localized issue messages associated with the error.
no setter
summary String

Available on ZError<T>, provided by the ZErrorExt extension

All localized issue messages associated with the error joined by newline.
no setter

Methods

getMessagesFor(String path) List<String>?

Available on ZError<T>, provided by the ZErrorExt extension

Returns the list of localized issue messages for the given path, or null if no matching issues are found.
getRawIssuesFor(String path) ZIssues?

Available on ZError<T>, provided by the ZErrorExt extension

Returns the list of ZIssues for the given path, or null if no matching issues are found.
getSummaryFor(String path) String?

Available on ZError<T>, provided by the ZErrorExt extension

Returns localized issue messages joined by a newline for the given path, or null if no matching issues are found.