GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
We need a new solution for handling errors. This is due to error messages currently being specified in two places: the src file that throws the errors and spec files which checks for the error message. This is an inefficient and bug-prone approach.
A better solution might be to create a type-hierarchy of Errors/Exceptions, and check for the types in the spec file, rather than specific messages.