Class TimerAlreadyStarted

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ml.karmaconfigs.api.common.timer.scheduler.errors.TimerAlreadyStarted
All Implemented Interfaces:
Serializable

public final class TimerAlreadyStarted extends RuntimeException
This exception is thrown when a timer that has been already started is tried to be started again
See Also:
Serialized Form
  • Constructor Details

    • TimerAlreadyStarted

      public TimerAlreadyStarted(SimpleScheduler source)
      Initialize the exception
      Parameters:
      source - the scheduler
  • Method Details

    • tryFix

      public boolean tryFix()
      Try to auto-fix the timer, so it can be started again
      Returns:
      if the timer has been started again
    • getScheduler

      public SimpleScheduler getScheduler()
      Get the scheduler that has been tried to be started
      Returns:
      the scheduler