-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathclerkerrors.py
More file actions
40 lines (29 loc) · 1017 Bytes
/
clerkerrors.py
File metadata and controls
40 lines (29 loc) · 1017 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
from __future__ import annotations
from .clerkerror import ClerkError
from clerk_backend_api.models import ClerkBaseError
from clerk_backend_api.types import BaseModel
from dataclasses import dataclass, field
import httpx
from typing import List, Optional
from typing_extensions import TypedDict
class ClerkErrorsMetaTypedDict(TypedDict):
pass
class ClerkErrorsMeta(BaseModel):
pass
class ClerkErrorsData(BaseModel):
errors: List[ClerkError]
meta: Optional[ClerkErrorsMeta] = None
@dataclass(unsafe_hash=True)
class ClerkErrors(ClerkBaseError):
r"""Request was not successful"""
data: ClerkErrorsData = field(hash=False)
def __init__(
self,
data: ClerkErrorsData,
raw_response: httpx.Response,
body: Optional[str] = None,
):
message = body or raw_response.text
super().__init__(message, raw_response, body)
object.__setattr__(self, "data", data)