소스 검색

Add `InvalidInstanceState` exception type

Should be raised when there’s an invalid VM state.
Sergiu Miclea 3 년 전
부모
커밋
0269f7ddc9
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      coriolis/exception.py

+ 4 - 0
coriolis/exception.py

@@ -237,6 +237,10 @@ class InvalidReplicaState(Invalid):
     message = _("Invalid replica state: %(reason)s")
 
 
+class InvalidInstanceState(Invalid):
+    message = _("Invalid instance state: %(reason)s")
+
+
 class ExecutionDeadlockException(CoriolisException):
     message = _("Execution is bound to be deadlocked.")