# Class BlockingDisallowedException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalStateException
com.codename1.ui.BlockingDisallowedException

public class BlockingDisallowedException extends IllegalStateException
Exception that is thrown if attempting to run invokeAndBlock while blocking is disabled. This exception is thrown by `Display#invokeAndBlock(java.lang.Runnable)` if blocking is currently disabled. Blocking is disabled on any code run inside the `Display#invokeWithoutBlocking(java.lang.Runnable)` method, which will propagate this exception if `Display#invokeAndBlock(java.lang.Runnable)` throws this exception.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `BlockingDisallowedException()`

- ## Method Summary

  ### Methods inherited from class Throwable

  `addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, setStackTrace, toString`

  ### Methods inherited from class Object

  `clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### BlockingDisallowedException

    public BlockingDisallowedException()