mirror of
https://github.com/Govor-team/Govor.git
synced 2026-09-22 10:40:14 +00:00
Stable server
was added removing messages many fixes bugs and moving to result pattern from throwing exceptions
This commit is contained in:
@@ -11,6 +11,6 @@ public record Error(string Code, string Message, ErrorType Type, Dictionary<stri
|
||||
public static Error Unauthorized(string code, string message) => new(code, message, ErrorType.Unauthorized);
|
||||
public static Error Forbidden(string code, string message) => new(code, message, ErrorType.Forbidden);
|
||||
public static Error Failure(string code, string message) => new(code, message, ErrorType.Failure);
|
||||
|
||||
public static Error ServerError(string code, string message) => new(code, message, ErrorType.ServerError);
|
||||
public override string ToString() => $"{Code}: {Message}";
|
||||
}
|
||||
Reference in New Issue
Block a user