REFACTOR: Improve types of Exceptions #12
Labels
documentation
Improvements or additions to documentation
enhancement
New feature or request
test
Improvements to testing suite
Problem
The exceptions present are not helpful. Currently there are only two
IllegalArgument
IllegalAutomatonState
.Solution
Introduce more exceptions.
Extending from
IllegalArgument
:InputNotInAlphabet(c:char)
- to deal with situations where the character is not part of the automaton alphabetUnkownState(stateName:string)
- to deal with when the input state does not existStateAlreadyExists(stateName:string)
- to deal with adding of state if it already existsThe text was updated successfully, but these errors were encountered: