Merge pull request #8490 from backstage/mob/hidden-error-docs

core-plugin-api: document ErrorApiErrorContext.hidden
This commit is contained in:
Patrik Oldsberg
2021-12-15 09:33:39 +01:00
committed by GitHub
@@ -41,7 +41,15 @@ export type Error = ErrorApiError;
* @public
*/
export type ErrorApiErrorContext = {
// If set to true, this error should not be displayed to the user. Defaults to false.
/**
* If set to true, this error should not be displayed to the user.
*
* Hidden errors are typically not displayed in the UI, but the ErrorApi
* implementation may still report them to error tracking services
* or other utilities that care about all errors.
*
* @defaultValue false
*/
hidden?: boolean;
};