Exceptions and Error Handling
This section covers all exception classes used throughout the Mobius SMPP API to represent recoverable and unrecoverable errors that occur during protocol operations. These exceptions provide information for diagnosing issues in encoding, decoding, connectivity, and PDU integrity, and they enable developers to implement error handling.
Recoverable exceptions such as RecoverablePduException, NotEnoughDataInBufferException, and TlvConvertException indicate issues that may allow continued session operation after correction.
Unrecoverable exceptions like UnrecoverablePduException and SmppProcessingException represent critical failures requiring session termination or external intervention.
Channel and connectivity-related errors (SmppChannelException, SmppTimeoutException, SmppChannelConnectException) help detect and manage network-level disruptions.
Validation and parsing errors, such as SmppInvalidArgumentException, UnknownCommandIdException, and TerminatingNullByteNotFoundException, help pinpoint protocol violations or malformed PDUs.
Start innovating with Mobius
What's next? Let's talk!