Skip to content

Commit 8f4dc1c

Browse files
David Strykerwendigo
authored andcommitted
Add StandardErrorCode.ILLEGAL_ENTITY_KIND
Now that Trino can grant/deny/revoke privileges on arbitrary entity kinds, we need a StandardErrorCode for unrecognized entity kinds.
1 parent 1fa0eba commit 8f4dc1c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/trino-spi/src/main/java/io/trino/spi/StandardErrorCode.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ public enum StandardErrorCode
152152
MISSING_PATH_NAME(128, USER_ERROR),
153153
INVALID_PLAN(129, USER_ERROR),
154154
INVALID_VIEW_PROPERTY(130, USER_ERROR),
155+
INVALID_ENTITY_KIND(131, USER_ERROR),
155156

156157
GENERIC_INTERNAL_ERROR(65536, INTERNAL_ERROR),
157158
TOO_MANY_REQUESTS_FAILED(65537, INTERNAL_ERROR),

0 commit comments

Comments
 (0)