kittycad.models.error.Error

class kittycad.models.error.Error(error_code=<kittycad.types.Unset object>, message=<kittycad.types.Unset object>, request_id=<kittycad.types.Unset object>)[source][source]

Bases: object

Error information from a response.

Method generated by attrs for class Error.

__init__(error_code=<kittycad.types.Unset object>, message=<kittycad.types.Unset object>, request_id=<kittycad.types.Unset object>)[source]

Method generated by attrs for class Error.

Methods

__init__([error_code, message, request_id])

Method generated by attrs for class Error.

from_dict(src_dict)

rtype:

TypeVar(MS, bound= Error)

to_dict()

rtype:

Dict[str, Any]

Attributes

additional_keys

error_code

message

request_id

additional_properties

__annotations__ = {'additional_properties': typing.Dict[str, typing.Any], 'error_code': typing.Union[kittycad.types.Unset, str], 'message': typing.Union[kittycad.types.Unset, str], 'request_id': typing.Union[kittycad.types.Unset, str]}[source]
__attrs_attrs__ = (Attribute(name='error_code', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='error_code'), Attribute(name='message', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='message'), Attribute(name='request_id', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='request_id'), Attribute(name='additional_properties', default=Factory(factory=<class 'dict'>, takes_self=False), validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=typing.Dict[str, typing.Any], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='additional_properties'))[source]
__contains__(key)[source][source]
Return type:

bool

__delitem__(key)[source][source]
Return type:

None

__dict__ = mappingproxy({'__module__': 'kittycad.models.error', '__annotations__': {'error_code': typing.Union[kittycad.types.Unset, str], 'message': typing.Union[kittycad.types.Unset, str], 'request_id': typing.Union[kittycad.types.Unset, str], 'additional_properties': typing.Dict[str, typing.Any]}, '__doc__': 'Error information from a response.', 'to_dict': <function Error.to_dict>, 'from_dict': <classmethod(<function Error.from_dict>)>, 'additional_keys': <property object>, '__getitem__': <function Error.__getitem__>, '__setitem__': <function Error.__setitem__>, '__delitem__': <function Error.__delitem__>, '__contains__': <function Error.__contains__>, '__dict__': <attribute '__dict__' of 'Error' objects>, '__weakref__': <attribute '__weakref__' of 'Error' objects>, '__attrs_attrs__': (Attribute(name='error_code', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='error_code'), Attribute(name='message', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='message'), Attribute(name='request_id', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='request_id'), Attribute(name='additional_properties', default=Factory(factory=<class 'dict'>, takes_self=False), validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=typing.Dict[str, typing.Any], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='additional_properties')), '__repr__': <function Error.__repr__>, '__eq__': <function Error.__eq__>, '__ne__': <function Error.__ne__>, '__lt__': <function Error.__lt__>, '__le__': <function Error.__le__>, '__gt__': <function Error.__gt__>, '__ge__': <function Error.__ge__>, '__hash__': None, '__init__': <function Error.__init__>, '__match_args__': ('error_code', 'message', 'request_id')})[source]
__eq__(other)[source]

Method generated by attrs for class Error.

__ge__(other)[source]

Method generated by attrs for class Error.

__getitem__(key)[source][source]
Return type:

Any

__gt__(other)[source]

Method generated by attrs for class Error.

__hash__ = None[source]
__init__(error_code=<kittycad.types.Unset object>, message=<kittycad.types.Unset object>, request_id=<kittycad.types.Unset object>)[source]

Method generated by attrs for class Error.

__le__(other)[source]

Method generated by attrs for class Error.

__lt__(other)[source]

Method generated by attrs for class Error.

__match_args__ = ('error_code', 'message', 'request_id')[source]
__module__ = 'kittycad.models.error'[source]
__ne__(other)[source]

Method generated by attrs for class Error.

__repr__()[source]

Method generated by attrs for class Error.

__setitem__(key, value)[source][source]
Return type:

None

property additional_keys: List[str][source]
additional_properties: Dict[str, Any][source]
error_code: Union[Unset, str][source]
classmethod from_dict(src_dict)[source][source]
Return type:

TypeVar(MS, bound= Error)

message: Union[Unset, str][source]
request_id: Union[Unset, str][source]
to_dict()[source][source]
Return type:

Dict[str, Any]