use thiserror::Error;
use crate::prelude::ActorSlug;
#[derive(Error, Debug, PartialEq, Eq)]
pub enum NextActionError {
#[error("No next action found.")]
NoNextAction,
#[error("Current node is a Choice. Cannot just advance.")]
ChoicesNotHandled,
#[error("The current node has no choice with the given entity. (If the talk has not started you need to Next first)")]
BadChoice,
#[error("No talk was found with the given entity from the event.")]
NoTalk,
}
#[derive(Error, Debug, PartialEq, Eq)]
pub enum BuildError {
#[error("Tried to use non-existent actor {0} in the builder. Did you forget to add it?")]
InvalidActor(ActorSlug),
}