opencascade errors

Canonical explanations and fixes for opencascade toolchain error signatures.

Standard_OutOfMemory

Standard_OutOfMemory is an Open CASCADE Technology (OCCT) runtime exception thrown when the memory manager fails to allocate a requested heap buffer or when an excessive memory request is issued. It is explicitly designed in TKernel to be raised without dynamic heap allocation so that out-of-memory states can be trapped safely.

Open CASCADE Technology: Standard_NotImplemented Exception

Standard_NotImplemented is an Open CASCADE Technology runtime exception raised when invoking an unsupported algorithm, calling an optional or unfulfilled virtual interface method, or performing an operation that has no valid implementation for the specific geometry or driver class.

Standard_NullObject Exception in Open CASCADE Technology

Standard_NullObject is a runtime exception thrown by Open CASCADE Technology (OCCT) when an operation attempts to access, query, or dereference an uninitialized, null, or empty object reference, such as calling methods on an empty TopoDS_Shape or dereferencing a null opencascade::handle.

Open CASCADE Standard_NullValue Exception

Standard_NullValue is an exception raised by Open CASCADE Technology (OCCT) math and geometry foundations when an operation requires a strictly non-zero numerical magnitude or non-null vector norm, but encounters a value equal to zero or within numerical epsilon of zero.

Standard_ImmutableObject

Standard_ImmutableObject is an Open CASCADE Technology (OCCT) domain error exception thrown when an operation attempts to mutate or reassign an object, collection, or buffer that is marked immutable or read-only.

Standard_LicenseError in Open CASCADE Technology

Standard_LicenseError is an OCCT FoundationClasses (TKernel) exception derived from Standard_Failure, thrown when a licensing validation check fails or license authorization is invalid for a component or extension.

OpenCASCADE Standard_ConstructionError Exception

Standard_ConstructionError is an exception thrown by Open CASCADE Technology (OCCT) when a geometric entity or topological shape cannot be built due to invalid input parameters or violated mathematical constraints.

Standard_DimensionError in Open CASCADE Technology

Standard_DimensionError is an exception in Open CASCADE Technology (OCCT) indicating an operation was attempted on operands, such as matrices, vectors, or arrays, that have incompatible dimensions.

Standard_DimensionMismatch in Open CASCADE Technology

An exception raised in Open CASCADE Technology (OCCT) when an operation encounters data structures, such as arrays, vectors, or matrices, with incompatible bounds, sizes, or dimensions.

Standard_DivideByZero in Open CASCADE Technology

Standard_DivideByZero is an OCCT exception signaling an attempt to divide by zero. It is explicitly thrown by geometric routines or emitted via hardware traps to prevent undefined behavior.

Standard_MultiplyDefined

In Open CASCADE Technology, Standard_MultiplyDefined is a C++ exception thrown when an attempt is made to bind or define an element using a key that already exists in a context requiring strict uniqueness, such as within an NCollection_DoubleMap.

OCCT Standard_NegativeValue Exception

Standard_NegativeValue is an OCCT exception raised when a geometric or topological algorithm receives a negative parameter for a quantity that must be strictly positive, such as a radius or offset distance.

Standard_NoSuchObject

An exception raised by Open CASCADE Technology (OCCT) when an operation attempts to access a requested geometric or topological object that does not exist, or queries a property undefined for the current state.

Open CASCADE Standard_OutOfRange Exception

An exception thrown by the Open CASCADE Technology (OCCT) geometry kernel when an index or parameter falls outside the valid bounds of a collection or geometric entity. This commonly occurs due to 0-indexing errors, as many OCCT collections dynamically define bounds and are conventionally 1-indexed.

Standard_Overflow Exception

Standard_Overflow is an Open CASCADE Technology (OCCT) diagnostic exception emitted when a numeric operation computes a value exceeding the bounds of the underlying data type, such as DBL_MAX for a floating-point type [1].

Standard_ProgramError in Open CASCADE

A core OCCT exception raised when a critical programmatic invariant is violated, most commonly by attempting to create an intrusive handle to a stack-allocated transient object.

Open CASCADE Standard_RangeError

`Standard_RangeError` is a C++ exception thrown by Open CASCADE Technology (OCCT) when an index accesses a collection or mathematical structure outside its defined bounds.

Standard_Underflow in OCCT

The `Standard_Underflow` diagnostic is a C++ exception in Open CASCADE Technology (OCCT) raised when a floating-point calculation evaluates to a subnormal value. It typically occurs when hardware floating-point exceptions (FPE) are enabled globally via `OSD::SetSignal()` and caught using the `OCC_CATCH_SIGNALS` macro.

Standard_LicenseNotFound Exception

The Standard_LicenseNotFound diagnostic is a C++ exception in Open CASCADE Technology (OCCT) indicating that a requested commercial or proprietary add-on module failed to locate a valid software license.