ErrorCode#

class ansys.stk.core.stkobjects.ErrorCode#

IntEnum

Overview#

OBJECT_NOT_FOUND

Object not found.

INDEX_OUT_OF_RANGE

Index out of range.

INVALID_ATTRIBUTE

The attribute is invalid.

COMMAND_FAILED

The command failed.

INVALID_ARGUMENT

Invalid argument.

EMPTY_ARGUMENT

Empty argument.

OBJECT_NOT_REMOVED

Object was not removed.

FAILED_TO_RENAME_OBJECT

Error renaming object.

UNKNOWN_CLASS_TYPE

Unknown class type.

FAILED_TO_CREATE_OBJECT

Failed to create the object.

OBJECT_LINK_INVALID_CHOICE

Invalid choice for object link.

OBJECT_LINK_NO_CHOICES

No choices available.

READ_ONLY_ATTRIBUTE

Read only attribute.

INVALID_CONSTRAINT_LIST

Invalid constraint list.

INVALID_CONSTRAINT

InvalidConstraint.

LIST_READ_ONLY

List if read only.

LIST_INSERT_FAILED

Failed to insert the item into the list.

INVALID_LENGTH

Length is invalid.

FAILED_TO_LOAD_FILE

Error loading a file.

INVALID_OPERATION

Invalid operation.

METHOD_INVOKE_FAILED

Method failed.

DEPRECATED

Deprecated property or method.

Import detail#

from ansys.stk.core.stkobjects import ErrorCode