---
title: Error
summary: API reference for the Error partial view.
status: draft
owner: SAIF IT Core Services
last_reviewed: 2026-10-12
library: BolMiddleware
reference_type: package
---

# 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
- Display the error text for a null menu or a policy error ([BR-BOLMIDDLEWARE-016](../../business-rules.md#br-bolmiddleware-016-null-menu-error-view), [BR-BOLMIDDLEWARE-017](../../business-rules.md#br-bolmiddleware-017-error-message-error-view)).

## 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
