forked from kintsugi-tax/kintsugi-tax-python-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrorresponse.py
More file actions
28 lines (22 loc) · 779 Bytes
/
Copy patherrorresponse.py
File metadata and controls
28 lines (22 loc) · 779 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
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
from __future__ import annotations
from dataclasses import dataclass, field
import httpx
from kintsugi_tax_platform_sdk.errors import SDKError
from kintsugi_tax_platform_sdk.types import BaseModel
from typing import Optional
class ErrorResponseData(BaseModel):
detail: str
r"""Error message"""
@dataclass(unsafe_hash=True)
class ErrorResponse(SDKError):
data: ErrorResponseData = field(hash=False)
def __init__(
self,
data: ErrorResponseData,
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)