-
Notifications
You must be signed in to change notification settings - Fork 703
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
180 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
export enum UpdateErrorType { | ||
// The action’s credentials were missing or invalid | ||
UnauthorizedAction = 'update/unauthorized_action', | ||
// The action’s matchID was not found | ||
MatchNotFound = 'match_not_found', | ||
// Could not apply Patch operation (rfc6902). | ||
PatchFailed = 'patch_failed', | ||
} | ||
|
||
export enum ActionErrorType { | ||
// The action contained a stale state ID | ||
StaleStateId = 'action/stale_state_id', | ||
// The requested move is unknown or not currently available | ||
UnavailableMove = 'action/unavailable_move', | ||
// The move declared it was invalid (INVALID_MOVE constant) | ||
InvalidMove = 'action/invalid_move', | ||
// The player making the action is not currently active | ||
InactivePlayer = 'action/inactive_player', | ||
// The game has finished | ||
GameOver = 'action/gameover', | ||
// The requested action is disabled (e.g. undo/redo, events) | ||
ActionDisabled = 'action/action_disabled', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.