Class RobotAssertionHandler

java.lang.Object
xbot.common.logging.assertion.RobotAssertionHandler
Direct Known Subclasses:
LoudRobotAssertionHandler, SilentRobotAssertionHandler

public abstract class RobotAssertionHandler extends Object
Base class for safe assertion handlers. Allows context-based management of exceptions and assertion conditions.
  • Constructor Details

    • RobotAssertionHandler

      public RobotAssertionHandler()
  • Method Details

    • throwException

      public final void throwException(RuntimeException e)
    • throwException

      public final void throwException(String message, Throwable cause)
    • handlePlatformException

      protected abstract void handlePlatformException(RuntimeException e)
    • isExceptionsEnabled

      public abstract boolean isExceptionsEnabled()
    • fail

      public final void fail(String message)
    • assertTrue

      public final void assertTrue(boolean value, String assertionFailureCause)