ErrorOptions interface
Configurations used to render the error dialog.
Properties
capacity |
SKU tier for capacity-related information, which may affect error handling or display. This property will only be displayed in the error dialog when showAdditionalErrorInfo is set to be true. |
customized |
A customized activity ID for tracking the error. If not assigned, the activity ID will be replaced with the telemetrySessionId. This property will only be displayed in the error dialog when showAdditionalErrorInfo is set to be true. |
error |
The time when the error occurred, will be assigned to the current time if not be assigned. This property will only be displayed in the error dialog when showAdditionalErrorInfo is set to be true. |
help |
The help link to render |
label |
Label value error details. |
plain |
Plain text error detail. |
primary |
Primary button definition. Rendered at the right bottom of the error dialog. |
request |
The id of the request associated with the error This property will only be displayed in the error dialog when showAdditionalErrorInfo is set to be true. |
search |
When configured, 'Get Help' button will open the help pane with a search of customized search keyword. |
secondary |
Secondary button definition. Rendered at the right bottom of the error dialog close to primary button. A close button will be rendered if users don't provide a secondary button. |
show |
Indicates whether to show additional information about the error. |
stack |
The stack trace of the error This property will only be displayed in the error dialog when showAdditionalErrorInfo is set to be true. |
status |
The status code of the request associated with the error This property will only be displayed in the error dialog when showAdditionalErrorInfo is set to be true. |
tertiary |
Tertiary button definition. Rendered at the left bottom of the error dialog. A 'Get Help' button will be rendered if users don't provide a tertiary button. |
title | Title of the error dialog. |
Property Details
capacitySkuTier
SKU tier for capacity-related information, which may affect error handling or display. This property will only be displayed in the error dialog when showAdditionalErrorInfo is set to be true.
capacitySkuTier?: CapacitySkuTier
Property Value
customizedActivityId
A customized activity ID for tracking the error. If not assigned, the activity ID will be replaced with the telemetrySessionId. This property will only be displayed in the error dialog when showAdditionalErrorInfo is set to be true.
customizedActivityId?: string
Property Value
string
errorTime
The time when the error occurred, will be assigned to the current time if not be assigned. This property will only be displayed in the error dialog when showAdditionalErrorInfo is set to be true.
errorTime?: string
Property Value
string
helpLink
The help link to render
helpLink?: string
Property Value
string
labelValueDetails
plainTextDetail
Plain text error detail.
plainTextDetail?: string
Property Value
string
primaryButton
Primary button definition. Rendered at the right bottom of the error dialog.
primaryButton?: ErrorDialogButton
Property Value
requestId
The id of the request associated with the error This property will only be displayed in the error dialog when showAdditionalErrorInfo is set to be true.
requestId?: string
Property Value
string
searchKeywordForGetHelp
When configured, 'Get Help' button will open the help pane with a search of customized search keyword.
searchKeywordForGetHelp?: string
Property Value
string
secondaryButton
Secondary button definition. Rendered at the right bottom of the error dialog close to primary button. A close button will be rendered if users don't provide a secondary button.
secondaryButton?: ErrorDialogButton
Property Value
showAdditionalErrorInfo
Indicates whether to show additional information about the error.
showAdditionalErrorInfo?: boolean
Property Value
boolean
stackTrace
The stack trace of the error This property will only be displayed in the error dialog when showAdditionalErrorInfo is set to be true.
stackTrace?: string
Property Value
string
statusCode
The status code of the request associated with the error This property will only be displayed in the error dialog when showAdditionalErrorInfo is set to be true.
statusCode?: string
Property Value
string
tertiaryButton
Tertiary button definition. Rendered at the left bottom of the error dialog. A 'Get Help' button will be rendered if users don't provide a tertiary button.
tertiaryButton?: ErrorDialogButton
Property Value
title
Title of the error dialog.
title: string
Property Value
string