Skip to content

Commit

Permalink
add serialization error
Browse files Browse the repository at this point in the history
  • Loading branch information
vroldanbet committed Oct 2, 2023
1 parent 0910e0e commit e68d9e5
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions authzed/api/v1/error_reason.proto
Original file line number Diff line number Diff line change
Expand Up @@ -285,4 +285,17 @@ enum ErrorReason {
// }
// }
ERROR_REASON_MAXIMUM_DEPTH_EXCEEDED = 19;

// The request failed due to a serialization error in the backend database.
// This typically indicates that various in flight transactions conflicted with each other
// and the database had to abort one or more of them.
//
// Example of an ErrorInfo:
//
// {
// "reason": "ERROR_REASON_SERIALIZATION_FAILURE",
// "domain": "authzed.com",
// "metadata": {}
// }
ERROR_REASON_SERIALIZATION_FAILURE = 20;
}

0 comments on commit e68d9e5

Please sign in to comment.