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

# InvalidContextForUserException

Signals that the resolved context/view is invalid specifically for the current user; defaults `TargetView` to `"InvalidContextForUser"`. ([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 specifically for the current user; defaults `TargetView` to `"InvalidContextForUser"`. ([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 |
| --- | --- | --- |
| InvalidContextForUserException() | `public InvalidContextForUserException()` | Sets `TargetView = "InvalidContextForUser"`. |
| InvalidContextForUserException(string targetView) | `public InvalidContextForUserException(string targetView)` | Sets `TargetView` to the supplied value. |


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