---
title: "Should you throw an exception when rebuilding the state from events?"
url: https://daily.dev/posts/should-you-throw-an-exception-when-rebuilding-the-state-from-events--yv40qtleg
source_url: https://event-driven.io/en/should_you_throw_exception_when_rebuilding_state_from_events
type: article
source: "Event-Driven by Oskar Dudycz"
published: 2026-06-17T11:26:20.013Z
updated: 2026-06-17T11:34:26.328Z
tags: ["architecture", "domain-driven-design"]
reading_time: 6
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Should you throw an exception when rebuilding the state from events?

**[Event-Driven by Oskar Dudycz](https://daily.dev/sources/event-driven-io)** · 6 min read · 0 upvotes · 0 comments

## Summary

When rebuilding aggregate state from events in Event Sourcing, throwing exceptions on unexpected data can block recovery — especially if compensating events exist downstream in the stream. Since events are immutable facts already validated by business logic, the Apply methods should be lenient and skip or handle anomalies gracefully. Exceptions may be acceptable during early development to catch bugs quickly, but should be removed once compensating operations are introduced. The recommended approach is to validate business rules after state reconstruction rather than during it.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://event-driven.io/en/should_you_throw_exception_when_rebuilding_state_from_events>

## Similar posts on daily.dev

- [Fixing bugs in Event Sourcing is hard, for real?](https://daily.dev/posts/fixing-bugs-in-event-sourcing-is-hard-for-real--ardsmesga) · Architecture Weekly · 1 upvotes · 0 comments
- [Event Sourcing: You better Prevent long event streams](https://daily.dev/posts/event-sourcing-you-better-prevent-long-event-streams-ebtbewtn0) · We Are .NET · 0 upvotes · 0 comments
- [Throw, Result, or neither?](https://daily.dev/posts/throw-result-or-neither--btptsrpke) · Event-Driven by Oskar Dudycz · 1 upvotes · 1 comments

---

Tags: [#architecture](https://daily.dev/tags/architecture), [#domain-driven-design](https://daily.dev/tags/domain-driven-design)

[View this post on daily.dev](https://daily.dev/posts/should-you-throw-an-exception-when-rebuilding-the-state-from-events--yv40qtleg)
