Class PlaywrightException

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    DriverException, TimeoutError

    public class PlaywrightException
    extends java.lang.RuntimeException
    PlaywrightException is thrown whenever certain operations are terminated abnormally, e.g. browser closes while Page.evaluate() is running. All Playwright exceptions inherit from this class.
    See Also:
    Serialized Form
    • Method Summary

      • 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

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • PlaywrightException

        public PlaywrightException​(java.lang.String message)
      • PlaywrightException

        public PlaywrightException​(java.lang.String message,
                                   java.lang.Throwable cause)