RecoverablePduException
public class RecoverablePduException
extends Exception
This exception is used for errors that occur during PDU processing but are not critical enough to terminate the operation entirely. It allows partial PDU data to be retrieved and potentially retried or logged.
Constructor:
public RecoverablePduException(String msg)
msg: Description of the recoverable issue.
Creates an exception instance with a descriptive error message.
public RecoverablePduException(String msg, Throwable t)
msg: Description of the error.
t: The underlying cause of the exception.
Creates an exception with both a custom message and a cause (another throwable).
public RecoverablePduException(Pdu partialPdu, String msg)
msg: Description of the error.
partialPdu: The PDU that was being processed when the error occurred.
Creates an exception and attaches a reference to a partially parsed PDU.
public RecoverablePduException(Pdu partialPdu, String msg, Throwable t)
partialPdu: The PDU that caused the error.
msg: Description of the issue.
t: The underlying cause (another exception).
Creates an exception with a partial PDU, a message, and the original cause.
Methods:
public void setPartialPdu(Pdu pdu) | Assigns a partially processed PDU to the exception. |
public Pdu getPartialPdu() | Retrieves the partial PDU stored in the exception, if available. |
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!