// SPDX-FileCopyrightText: 2026 FocusFlow contributors
// SPDX-License-Identifier: AGPL-3.0-only

part of '../../application_layer.dart';

/// Exception for expected failures raised inside a unit-of-work callback.
class ApplicationFailureException implements Exception {
  /// Creates a `ApplicationFailureException` instance with the values required by its invariants.
  /// Callers should pass already-normalized scheduler data because validation and defaulting belong at the model or service boundary, not in arbitrary UI code.
  const ApplicationFailureException(this.failure);

  /// Failure to return from the application boundary.
  final ApplicationFailure failure;
}
