Skip to content
This repository was archived by the owner on Feb 24, 2026. It is now read-only.
This repository was archived by the owner on Feb 24, 2026. It is now read-only.

Переписать систему ошибок #59

@BlackSoulHub

Description

@BlackSoulHub

Изменить Result-класс и сделать его чем-то вроде:

class Result<TResult> 
{
    private readonly TResult? _result;
    private readonly Error_error;
} 

А Error:

// maybe use struct
class Error
{
    private readonly string _error;
    private readonly string _comment;
}

Добавить классы для ошибок:

class UserErrors
{
    public static Error NotFound(int userId) => new Error("UserErrors.NotFound", $"User with Id = {userId} not found");
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions