Class RuntimeErrorManager

java.lang.Object
org.skriptlang.skript.log.runtime.RuntimeErrorManager
All Implemented Interfaces:
Closeable, AutoCloseable

public class RuntimeErrorManager extends Object implements Closeable
Handles passing runtime errors between producers and consumers via a frame collection system.
The manager should be treated as a singleton and accessed via getInstance() or Skript.getRuntimeErrorManager(). Changing the frame length or limits requires edits to the SkriptConfig values and a call to refresh(). Reloading the config will automatically call refresh().
See Also:
  • Constructor Details

    • RuntimeErrorManager

      public RuntimeErrorManager(long frameLength)
      Creates a new error manager, which also creates its own frames.
      Must be closed when no longer being used.
      Parameters:
      frameLength - The length of a frame in ticks.
  • Method Details