blob: 14e1bd77299872bb14ffda72f612002333ec91e0 (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
from __future__ import annotations
import dataclasses
from dataclasses_json import Undefined, dataclass_json
from typing import Optional
from unstructured_client import utils
@dataclass_json(undefined=Undefined.EXCLUDE)
@dataclasses.dataclass
class ServerError(Exception):
detail: Optional[str] = dataclasses.field(default=None, metadata={'dataclasses_json': { 'letter_case': utils.get_field_name('detail'), 'exclude': lambda f: f is None }})
def __str__(self) -> str:
return utils.marshal_json(self, type(self))
|