Skip to content

Replace INVALID_NULL_HANDLE in entry-points with handle-specific error codes  #471

Closed
@omarahmed1111

Description

@omarahmed1111

Currently, when entry-points are passed Null-handles, it return UR_RESULT_ERROR_INVALID_NULL_HANDLE regardless of the type of the handle. that could create some confusion on entry-points where it is passed multiple handles with different types. To solve this, we could return more specific error codes for null handles UR_RESULT_ERROR_iNVALID_<OBJECT>, for example: UR_RESULT_ERROR_INVALID_DEVICE.

If we have taken this path, it is not obvious if we would still need UR_RESULT_ERROR_INVALID_NULL_HANDLE to exist. (not sure if it would have a usage as a general error code)

Metadata

Metadata

Assignees

No one assigned

    Labels

    specificationChanges or additions to the specification

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions