Skip to content

Error

View used by the policy header component and the layouts to show a failure message in a banner instead of the normal content.

Purpose

Context

  • Namespace: BolMiddleware.Pages.Shared
  • Assembly/package: BolMiddleware

Public members

Member Signature Purpose
View Pages/Shared/Error.cshtml with @model string Renders the message text in an error banner with the MsgError.png icon.

Behavioral notes

  • The message can be an exception message, so internal detail can reach the user.

Constraints and usage notes

  • The message is HTML-encoded by Razor.

Sources

  • src/BolMiddleware/Pages/Shared/Error.cshtml