Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REFACTOR: Improve types of Exceptions #12

Open
3 tasks
Zakrok09 opened this issue Apr 3, 2024 · 0 comments
Open
3 tasks

REFACTOR: Improve types of Exceptions #12

Zakrok09 opened this issue Apr 3, 2024 · 0 comments
Assignees
Labels
documentation Improvements or additions to documentation enhancement New feature or request test Improvements to testing suite

Comments

@Zakrok09
Copy link
Owner

Zakrok09 commented Apr 3, 2024

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 alphabet
  • UnkownState(stateName:string) - to deal with when the input state does not exist
  • StateAlreadyExists(stateName:string) - to deal with adding of state if it already exists
@Zakrok09 Zakrok09 added documentation Improvements or additions to documentation enhancement New feature or request test Improvements to testing suite labels Apr 3, 2024
@Zakrok09 Zakrok09 self-assigned this Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request test Improvements to testing suite
Projects
None yet
Development

No branches or pull requests

1 participant