---
title: InvalidContextException
summary: API reference for InvalidContextException.
status: draft
owner: saif-docgen
last_reviewed: 2026-09-15
library: SAIF.Framework.Common
reference_type: package
---

# InvalidContextException

Signals that the resolved context/view is invalid for the current request; defaults `TargetView` to `"InvalidContext"`. ([BR-048](../../business-rules.md#br-048-each-context-failure-condition-maps-to-a-fixed-default-target-view-name))

## Purpose
- Signals that the resolved context/view is invalid for the current request; defaults `TargetView` to `"InvalidContext"`. ([BR-048](../../business-rules.md#br-048-each-context-failure-condition-maps-to-a-fixed-default-target-view-name))

## Context
- Namespace: `SAIF.Common.Classes`
- Assembly/package: `SAIF.Framework.Common`

## Public members
| Member | Signature | Purpose |
| --- | --- | --- |
| InvalidContextException() | `public InvalidContextException()` | Sets `TargetView = "InvalidContext"`. |
| InvalidContextException(string targetView) | `public InvalidContextException(string targetView)` | Sets `TargetView` to the supplied value. |


## Sources
- `Common/SAIF.Common/Classes/ContextException.cs`
