NotEnoughDataInBufferException
public class NotEnoughDataInBufferException
Extends: RecoverablePduException
This exception is thrown when the amount of data available in the buffer is insufficient to fully decode an expected value. It provides details about how many bytes were available and how many were required.
Constructor:
public NotEnoughDataInBufferException(int available, int expected)
available: Number of bytes currently in the buffer.
expected: Number of bytes expected for successful reading.
Creates an exception instance with the given available and expected byte counts.
public NotEnoughDataInBufferException(String msg, int available, int expected)
msg (optional): A description of the error.
available: Number of bytes currently in the buffer.
expected: Number of bytes expected for successful reading.
Creates an exception instance with a custom message and byte counts.
Methods:
public int getAvailable() | Returns the number of bytes available in the buffer. |
public int getExpected() | Returns the number of bytes required to continue parsing. |
Methods inherited from class com.mobius.software.protocols.smpp.exceptions.RecoverablePduException |
|
getPartialPdu, setPartialPdu | |
Methods inherited from class java.lang.Throwable |
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString | |
Methods inherited from class java.lang.Object |
|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Start innovating with Mobius
What's next? Let's talk!