InvalidMarkException

  • InvalidMarkException is an unchecked exception, meaning it does not need to be explicitly declared in a method's throws clause.

  • This exception is thrown when attempting to reset a buffer whose mark is not defined.

  • It inherits methods from IllegalStateException, Throwable, and Object for exception handling and object manipulation.

  • InvalidMarkException provides a single public constructor with no arguments to create an instance of the exception.

  • Developers should ensure a buffer's mark is defined before attempting to reset it to avoid this exception.

public class InvalidMarkException extends IllegalStateException

Unchecked exception thrown when an attempt is made to reset a buffer when its mark is not defined.

Public Constructor Summary

InvalidMarkException()
Constructs an instance of this class.

Inherited Method Summary

Public Constructors

public InvalidMarkException ()

Constructs an instance of this class.