Displays info about a specific error.
Once you have caught the error in your server you will need to redirect to /error/errorCode to display information about that error.
this.router.navigate(['/error', errorCode]);
| Name | Type | Default value | Description |
|---|---|---|---|
| errorCode | string | Error code associated with this error. |
Note that you need to provide values for the variables used in the view template.
You can customize your error messages by adding them to the translate files inside
lib/core/i18n:
"ERROR_CONTENT": {
"404": {
"TITLE": "An error occurred.",
"DESCRIPTION": "We couldn’t find the page you were looking for.",
"SECONDARY_BUTTON": {
"TEXT": ""
},
"RETURN_BUTTON": {
"TEXT": "Back to home"
}
}
}
The errorContentComponent allows you to customise the actions section using the selector adf-error-content-actions.
For example you can have a custom action button with the following code
<adf-error-content [errorCode]="errorCode">
<div adf-error-content-actions>
<button type="button">MyAction</button>
</div>
</adf-error-content>
© 2023 Alfresco Software, Inc. All Rights Reserved.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.