OTelException:
    | IOTelExceptionWithCode
    | IOTelExceptionWithMessage
    | IOTelExceptionWithName
    | string

Defines Exception.

string or an object with one of (message or name or code) and optional stack

3.4.0