WAError
public struct WAError : Error
WAError represents an error in the writing assistant feature, providing details about the error and potential actions which will be used in IllustratedMessage.
-
Detail image for the error.
Declaration
Swift
public let detailImage: Image? -
Title of the error.
Declaration
Swift
public let title: AttributedString -
Description of the error.
Declaration
Swift
public let description: AttributedString? -
Action button for the error.
Declaration
Swift
public let action: FioriButton? -
Secondary action button for the error.
Declaration
Swift
public let secondaryAction: FioriButton? -
Size of the detail image.
Declaration
Swift
public let detailImageSize: IllustratedMessage.DetailImageSize? -
Whether the action button is vertically aligned.
Declaration
Swift
public let isActionVerticallyAligned: Bool? -
Content alignment for the error message.
Declaration
Swift
public let contentAlignment: HorizontalAlignment? -
init(detailImage:title: description: action: secondaryAction: detailImageSize: isActionVerticallyAligned: contentAlignment: ) Initialization for a
WAError.Declaration
Swift
public init(detailImage: Image? = nil, title: AttributedString, description: AttributedString? = nil, action: FioriButton? = nil, secondaryAction: FioriButton? = nil, detailImageSize: IllustratedMessage.DetailImageSize? = nil, isActionVerticallyAligned: Bool? = nil, contentAlignment: HorizontalAlignment? = nil)Parameters
detailImageDetail image for the error.
titleThe title of the error.
descriptionDescription of the error.
actionAction button for the error.
secondaryActionSecondary action button for the error.
detailImageSizeSize for the detail image.
isActionVerticallyAlignedA boolean value to indicate whether the action button is vertically aligned.
contentAlignmentContent alignment for the error message.