class_docstr: Raised when resource status is not expected and thus not allowed for further execution
class_docstr_tok: ["Raised","when","resource","status","is","not","expected","and","thus","not","allowed","for","further","execution"]
code: def __init__(self, message, allowed_statuses, actual_status):
      self.allowed_statuses = allowed_statuses
      self.actual_status = actual_status
      super(UnexpectedStatusException, self).__init__(message)
  
imports: from __future__ import absolute_import
label_desc: Use image node_id 1 to create a new UnexpectedStatusException object from inherited base classes: ValueError with example: obj = UnexpectedStatusException(message, allowed_statuses, actual_status)