class_docstr: Generic data validation error out of request
class_docstr_tok: ["Generic","data","validation","error","out","of","request"]
code: def __init__(self, error: pydantic.ValidationError):
      self.errors = error.errors()
  
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 ValidationError object from inherited base classes: ServerError with example: obj = ValidationError(error)