code: def __init__(self, error: Exception):
      self.type = f"{type(error).__module__}.{type(error).__name__}"
      self.message = str(error)
      self.args = error.args
  
imports: from typing import Any, Optional, Type, Union
  import pydantic
  from starlette import status
label_desc: Use image node_id 1 to create a new GenericServerError object from inherited base classes: ServerError with example: obj = GenericServerError(error)