Skip to content

Commit 52f26db

Browse files
feature(#6): this commit defines the new error representing the error of attempting to create a reserved permission
1 parent a4b387e commit 52f26db

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Source/HttpsRichardy.Federation.Domain/Errors/PermissionErrors.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ public static class PermissionErrors
77
Description: "The permission with the specified name already exists."
88
);
99

10+
public static readonly Error PermissionNameIsReserved = new(
11+
Code: "#ERROR-7B1E2",
12+
Description: "The permission name is reserved by the system."
13+
);
14+
1015
public static readonly Error PermissionDoesNotExist = new(
1116
Code: "#ERROR-93697",
1217
Description: "The specified permission does not exist."

0 commit comments

Comments
 (0)