Skip to content

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

@FreePhoenix888

Description

@FreePhoenix888

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."); }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions