@twilio/video-node-sdk - v1.0.0-beta.2
    Preparing search index...

    Function twilioErrorFromCode

    • Build a TwilioError (or matching subclass) from a numeric error code. For a registered code the subclass's canonical message is used and any supplied message is ignored. For an unregistered code the supplied message is preserved.

      Parameters

      • code: number
      • Optionalmessage: string

      Returns TwilioError