Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.

public class BlockingDisallowedException

  1. Object
  2. Throwable
  3. Exception
  4. RuntimeException
  5. IllegalStateException
  6. BlockingDisallowedException
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.

Constructors

public BlockingDisallowedException()
public BlockingDisallowedException(String message)Creates the exception with a message that explains why blocking is disabled here.

Inherited methods

Constructor details

BlockingDisallowedException

public BlockingDisallowedException()

BlockingDisallowedException

public BlockingDisallowedException(String message)
Creates the exception with a message that explains why blocking is disabled here.

Parameters

message String
the explanation shown to the developer