Session.js error classes. This module can be used to check instance of thrown errors in Session.js. All errors extend from SessionJsError class which itself extends from generic Error class.
import{SessionRuntimeError,SessionJsError}from'@session.js/error'try{// something throws}catch(e){if(einstanceofSessionRuntimeError){console.error('Session.js runtime error handled')}else{if(einstanceofSessionJsError){console.error('It\'s not Session.js runtime error... but at least we know it\'s Session\.js error')}else{console.error('No idea what is this error')throwe}}}Use Session messenger programmatically with Session.js: Session bots, custom Session clients, and more.
hloth.dev/donate · Tor: hlothdevzkti6suoksy7lcy7hmpxnr3msu5waokzaslsi2mnx5ouu4qd.onion/donate