kittycad.models.modeling_error.ModelingError

class kittycad.models.modeling_error.ModelingError(error_code=<kittycad.types.Unset object>, external_message=<kittycad.types.Unset object>, internal_message=<kittycad.types.Unset object>, status_code=<kittycad.types.Unset object>)[source][source]

Bases: object

Why a command submitted to the Modeling API failed.

Method generated by attrs for class ModelingError.

__init__(error_code=<kittycad.types.Unset object>, external_message=<kittycad.types.Unset object>, internal_message=<kittycad.types.Unset object>, status_code=<kittycad.types.Unset object>)[source]

Method generated by attrs for class ModelingError.

Methods

__init__([error_code, external_message, ...])

Method generated by attrs for class ModelingError.

from_dict(src_dict)

rtype:

TypeVar(CS, bound= ModelingError)

to_dict()

rtype:

Dict[str, Any]

Attributes

additional_keys

error_code

external_message

internal_message

status_code

additional_properties

__annotations__ = {'additional_properties': typing.Dict[str, typing.Any], 'error_code': typing.Union[kittycad.types.Unset, str], 'external_message': typing.Union[kittycad.types.Unset, str], 'internal_message': typing.Union[kittycad.types.Unset, str], 'status_code': typing.Union[kittycad.types.Unset, int]}[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='external_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='external_message'), Attribute(name='internal_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='internal_message'), Attribute(name='status_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, int], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='status_code'), 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.modeling_error', '__annotations__': {'error_code': typing.Union[kittycad.types.Unset, str], 'external_message': typing.Union[kittycad.types.Unset, str], 'internal_message': typing.Union[kittycad.types.Unset, str], 'status_code': typing.Union[kittycad.types.Unset, int], 'additional_properties': typing.Dict[str, typing.Any]}, '__doc__': 'Why a command submitted to the Modeling API failed.', 'to_dict': <function ModelingError.to_dict>, 'from_dict': <classmethod(<function ModelingError.from_dict>)>, 'additional_keys': <property object>, '__getitem__': <function ModelingError.__getitem__>, '__setitem__': <function ModelingError.__setitem__>, '__delitem__': <function ModelingError.__delitem__>, '__contains__': <function ModelingError.__contains__>, '__dict__': <attribute '__dict__' of 'ModelingError' objects>, '__weakref__': <attribute '__weakref__' of 'ModelingError' 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='external_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='external_message'), Attribute(name='internal_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='internal_message'), Attribute(name='status_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, int], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='status_code'), 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 ModelingError.__repr__>, '__eq__': <function ModelingError.__eq__>, '__ne__': <function ModelingError.__ne__>, '__lt__': <function ModelingError.__lt__>, '__le__': <function ModelingError.__le__>, '__gt__': <function ModelingError.__gt__>, '__ge__': <function ModelingError.__ge__>, '__hash__': None, '__init__': <function ModelingError.__init__>, '__match_args__': ('error_code', 'external_message', 'internal_message', 'status_code')})[source]
__eq__(other)[source]

Method generated by attrs for class ModelingError.

__ge__(other)[source]

Method generated by attrs for class ModelingError.

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

Any

__gt__(other)[source]

Method generated by attrs for class ModelingError.

__hash__ = None[source]
__init__(error_code=<kittycad.types.Unset object>, external_message=<kittycad.types.Unset object>, internal_message=<kittycad.types.Unset object>, status_code=<kittycad.types.Unset object>)[source]

Method generated by attrs for class ModelingError.

__le__(other)[source]

Method generated by attrs for class ModelingError.

__lt__(other)[source]

Method generated by attrs for class ModelingError.

__match_args__ = ('error_code', 'external_message', 'internal_message', 'status_code')[source]
__module__ = 'kittycad.models.modeling_error'[source]
__ne__(other)[source]

Method generated by attrs for class ModelingError.

__repr__()[source]

Method generated by attrs for class ModelingError.

__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]
external_message: Union[Unset, str][source]
classmethod from_dict(src_dict)[source][source]
Return type:

TypeVar(CS, bound= ModelingError)

internal_message: Union[Unset, str][source]
status_code: Union[Unset, int][source]
to_dict()[source][source]
Return type:

Dict[str, Any]