ShortBufferException

  • ShortBufferException signals that the provided output buffer is too small to store the result of a cryptographic operation.

  • It's a subclass of GeneralSecurityException, indicating a security-related issue during the operation.

  • Two constructors are available: one with no detail message and one accepting a custom message for describing the error.

  • Inherited methods from Throwable and Object offer functionalities for handling and inspecting the exception.

public class ShortBufferException extends GeneralSecurityException

This exception is thrown when an output buffer provided by the user is too short to hold the operation result.

Public Constructor Summary

ShortBufferException()
Constructs a ShortBufferException with no detail message.
ShortBufferException(String msg)
Constructs a ShortBufferException with the specified detail message.

Inherited Method Summary

Public Constructors

public ShortBufferException ()

Constructs a ShortBufferException with no detail message. A detail message is a String that describes this particular exception.

public ShortBufferException (String msg)

Constructs a ShortBufferException with the specified detail message.

Parameters
msg the detail message.