<core:FragmentDefinition
        xmlns="sap.m"
        xmlns:core="sap.ui.core" >
    <Dialog
        id="errorDialog"
        title="{i18n>ErrorDialog.Title}"
        type="Message"
        afterClose=".onAfterClose"
        contentWidth="30rem"
        state="Error">
        <content>
            <VBox id="errorDialogMessageWrapper">
                <Text
                    id="errorDialogMessageText"
                    text="{/message}"
                    class="sapUiSmallMarginBottom" />
                <Link
                    id="errorDialogMessageLink"
                    text="{i18n>Button.ShowDetails}"
                    visible="{=!${/showDetails}}"
                    press=".onShowDetails" />
            </VBox>
            <VBox  id="errorDialogDetailsWrapper" visible="{/showDetails}">
                <Text id="errorDialogResponseCodeText" text="{i18n>Label.ResponseCode} {/statusCode} - {/statusText}" class="sapUiSmallMarginBottom" />
                <Text id="errorDialogDetailsText" text="{i18n>Label.Details}" />
                <Text id="errorDialogDescriptionText" text="{/description}" renderWhitespace="true" />
            </VBox>
        </content>

        <buttons>
            <Button id="errorDialogButtonConfirm" text="{i18n>Button.Ok}" press=".onConfirm" />
            <Button id="errorDialogButtonCopy" text="{i18n>Button.Copy}" press=".onCopy" />
        </buttons>
    </Dialog>
</core:FragmentDefinition>