class_docstr: Exception raised when trying to access a JumpStart model deprecated specifications.
  
  A deprecated specification for a JumpStart model does not mean the whole model is
  deprecated. There may be more recent specifications available for this model. For
  example, all specification before version ``2.0.0`` may be deprecated, in such a
  case, the SDK would raise this exception only when specifications ``1.*`` are
  accessed.
class_docstr_tok: ["Exception","raised","when","trying","to","access","a","JumpStart","model","deprecated","specifications",".","A","deprecated","specification","for","a","JumpStart","model","does","not","mean","the","whole","model","is","deprecated",".","There","may","be","more","recent","specifications","available","for","this","model",".","For","example",",","all","specification","before","version","``","2.0.0","``","may","be","deprecated",",","in","such","a","case",",","the","SDK","would","raise","this","exception","only","when","specifications","``","1",".","*","``","are","accessed","."]
code: def __init__(
      self,
      model_id: Optional[str] = None,
      version: Optional[str] = None,
      message: Optional[str] = None,
  ):
      if message:
          self.message = message
      else:
          if None in [model_id, version]:
              raise RuntimeError(
                  "Must specify `model_id` and `version` arguments."
              )
          self.message = (
              f"Version '{version}' of JumpStart model '{model_id}' is deprecated. "
              f"{_VULNERABLE_DEPRECATED_ERROR_RECOMMENDATION}"
          )
  
      super().__init__(self.message)
  
file_path: sagemaker-python-sdk/src/sagemaker/jumpstart/exceptions.py
imports: from __future__ import absolute_import
  from typing import List, Optional
  from sagemaker.jumpstart.constants import MODEL_ID_LIST_WEB_URL, JumpStartScriptScope
label_desc: Use image node_id 1 to create a new DeprecatedJumpStartModelError object from inherited base classes: ValueError with example: obj = DeprecatedJumpStartModelError(model_id, version, message)