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
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