Class RealtimeAllocationError

java.lang.Object
java.lang.Throwable
java.lang.Error
com.codename1.realtime.RealtimeAllocationError

public class RealtimeAllocationError extends Error

Thrown out of a RealtimeTask's cycle() when the cycle allocates beyond its budget (RealtimeParameters.setAllocationBudget(int), zero unless set).

It ends the steady state: the thread delivers it to RealtimeTask.failed(Throwable) and stops. The message names the class whose allocation was refused. The build rejects the allocations it can see, so this one came from a path the check cannot follow -- a call through an interface or a method overridden in several classes.

  • Constructor Details

    • RealtimeAllocationError

      public RealtimeAllocationError(String message)
      Creates an error with the given message.