You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello there,
I just read about handling errors on this package like this:
session.on('error', function(e) {
// empty callback to catch emitted errors to prevent exit due unhandled errors
if (e.code === "ETIMEOUT") {
// TIMEOUT
} else if (e.code === "ECONNREFUSED" {
// CONNECTION REFUSED
} else {
// OTHER ERROR
}
});
isn't it better to map error codes to make it similar to the one with SMPP Spec? the one used on the above code is obscure relating to the spec, and does all SMPP Error codes implemented on this library? Thanks.
reference: https://smpp.org/smpp-error-codes.html
The text was updated successfully, but these errors were encountered:
Hello there,
I just read about handling errors on this package like this:
isn't it better to map error codes to make it similar to the one with SMPP Spec? the one used on the above code is obscure relating to the spec, and does all SMPP Error codes implemented on this library? Thanks.
reference: https://smpp.org/smpp-error-codes.html
The text was updated successfully, but these errors were encountered: