NoSuchPaddingException

  • NoSuchPaddingException signals that a requested padding mechanism isn't available in the current environment.

  • This exception is a subclass of GeneralSecurityException.

  • It provides two constructors: one with no detail message and another accepting a custom message explaining the exception.

  • NoSuchPaddingException inherits methods from Throwable and Object for exception handling and object management.

public class NoSuchPaddingException extends GeneralSecurityException

This exception is thrown when a particular padding mechanism is requested but is not available in the environment.

Public Constructor Summary

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

Inherited Method Summary

Public Constructors

public NoSuchPaddingException ()

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

public NoSuchPaddingException (String msg)

Constructs a NoSuchPaddingException with the specified detail message.

Parameters
msg the detail message.