text: # coding: utf-8
  
  from datetime import date, datetime
  
  from typing import List, Dict, Type
  
  from openapi_server.models.base_model_ import Model
  from openapi_server import util
  
  
  class Exception(Model):
      """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
  
      Do not edit the class manually.
      """
  
      def __init__(self, code: str=None, description: str=None):
          """Exception - a model defined in OpenAPI
  
          :param code: The code of this Exception.
          :param description: The description of this Exception.
          """
          self.openapi_types = {
              'code': str,
              'description': str
          }
  
          self.attribute_map = {
              'code': 'code',
              'description': 'description'
          }
  
          self._code = code
          self._description = description
  
      @classmethod
      def from_dict(cls, dikt: dict) -> 'Exception':
          """Returns the dict as a model
  
          :param dikt: A dict.
          :return: The exception of this Exception.
          """
          return util.deserialize_model(dikt, cls)
  
      @property
      def code(self):
          """Gets the code of this Exception.
  
  
          :return: The code of this Exception.
          :rtype: str
          """
          return self._code
  
      @code.setter
      def code(self, code):
          """Sets the code of this Exception.
  
  
          :param code: The code of this Exception.
          :type code: str
          """
          if code is None:
              raise ValueError("Invalid value for `code`, must not be `None`")
  
          self._code = code
  
      @property
      def description(self):
          """Gets the description of this Exception.
  
  
          :return: The description of this Exception.
          :rtype: str
          """
          return self._description
  
      @description.setter
      def description(self, description):
          """Sets the description of this Exception.
  
  
          :param description: The description of this Exception.
          :type description: str
          """
  
          self._description = description
  