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

Should we rename ThrowExtensions to something else because they return errors, not throw #76

Open
FreePhoenix888 opened this issue Sep 25, 2023 · 0 comments

Comments

@FreePhoenix888
Copy link
Member

Should we rename ThrowExtensions to something else because they return errors, not throw

namespace Platform::Exceptions
{
auto NotSupportedException() { return std::logic_error("Not supported exception."); }
auto NotImplementedException() { return std::logic_error("Not implemented exception."); }
auto ArgumentLinkDoesNotExistsException() { return std::logic_error("The passed link does not exists."); }
auto ArgumentLinkHasDependenciesException() { return std::logic_error("The passed link inner structure changes are prevented by its dependencies."); }
auto LinkWithSameValueAlreadyExistsException() { return std::logic_error("Link with same value already exists."); }
auto LinksLimitReachedException() { return std::logic_error("Storage links limit has been reached."); }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant