-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Should we rename ThrowExtensions to something else because they return errors, not throw
Exceptions/cpp/Platform.Exceptions/ThrowExtensions.h
Lines 1 to 14 in 353cf4e
| 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."); } | |
| } |
Metadata
Metadata
Assignees
Labels
No labels