ErrorInfo Class

class NXOpen.ErrorInfo

Bases: NXOpen.TransientObject

Contains information about an error that occurred

New in version NX3.0.0.

Properties

Property Description
Description Returns a description of the error
ErrorCode Returns a number that represents what error occurred
ErrorObject Returns the object for which the error occurred.
ErrorObjectDescription Returns a description of the object for which the error occurred

Methods

Method Description
Dispose Frees this object from memory.

Property Detail

Description

ErrorInfo.Description

Returns a description of the error

-------------------------------------

Getter Method

Signature Description()

Returns:
Return type:str

New in version NX3.0.0.

License requirements: None.

ErrorCode

ErrorInfo.ErrorCode

Returns a number that represents what error occurred

-------------------------------------

Getter Method

Signature ErrorCode()

Returns:
Return type:int

New in version NX3.0.0.

License requirements: None.

ErrorObject

ErrorInfo.ErrorObject

Returns the object for which the error occurred.

This may be None if the object was deleted.

Note: if the object was deleted, ErrorObjectDescription() may be used to obtain a description of the object.

-------------------------------------

Getter Method

Signature ErrorObject()

Returns:
Return type:NXOpen.NXObject

New in version NX3.0.0.

License requirements: None.

ErrorObjectDescription

ErrorInfo.ErrorObjectDescription

Returns a description of the object for which the error occurred

-------------------------------------

Getter Method

Signature ErrorObjectDescription()

Returns:
Return type:str

New in version NX3.0.0.

License requirements: None.

Method Detail

Dispose

ErrorInfo.Dispose

Frees this object from memory.

After this method is called, it is illegal to use the object. In .NET, this method is automatically called when the object is deleted by the garbage collector.

Signature Dispose()

New in version NX3.0.0.

License requirements: None.