# SPDX-FileCopyrightText: 2023 ash_state_machine contributors # # SPDX-License-Identifier: MIT defmodule AshStateMachine.Errors.InvalidInitialState do @moduledoc "Used when an initial state is set that is not a valid initial state" use Splode.Error, fields: [:action, :target, :field], class: :invalid def message(error) do """ Attempted to set initial state to `:#{error.target}` in action `:#{error.action}`, but it is not a valid initial state. """ end end