| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Game.Antisplice.Errors
Description
Provides the error datatype for Antisplice
- data SplErr
- = UnknownError
- | QuitError
- | DoneError
- | UnintellegibleError
- | VerbMustFirstError
- | CantSeeOneError
- | DontCarryOneError
- | WhichOneError
- | CantEquipThatError
- | CantEquipThatThereError
- | WhereToEquipError
- | CantCastThatNowError
- | CantWalkThereError
- | CantAcquireThatError
- | WontHitThatError
- | WrongMethodError
- | ReError ReError
- data ReError
- type SplErrT m = FailT SplErr m
Documentation
Antisplice errors
Constructors
| UnknownError | |
| QuitError | Triggers program termination |
| DoneError | Escape the waiter loop |
| UnintellegibleError | "I don't understand that." |
| VerbMustFirstError | "Please start with a verb." |
| CantSeeOneError | "I can't see one here." |
| DontCarryOneError | "You don't carry one." |
| WhichOneError | "Which one do you mean?" |
| CantEquipThatError | "I can't equip that." |
| CantEquipThatThereError | "I can't wear that there. You might want to try some other place?" |
| WhereToEquipError | "Where?" |
| CantCastThatNowError | "Sorry, I can't cast that now. Check you health, mana and cooldowns." |
| CantWalkThereError | "I can't walk there." |
| CantAcquireThatError | "I can't take that." |
| WontHitThatError | "I won't hit that." |
| WrongMethodError | "Wrong method for creating that." |
| ReError ReError | To embed ReErrors |
Instances
| Show SplErr Source | |
| MonadError SplErr m0 => MonadError SplErr (StereoBuilderT m) |
Antisplice new errors