Package dev.demeng.pluginbase.exceptions
Class SchedulerTaskException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.demeng.pluginbase.exceptions.BaseException
dev.demeng.pluginbase.exceptions.SchedulerTaskException
- All Implemented Interfaces:
Serializable
A general exception caused by a scheduler task.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull RunnableWraps a runnable into a runnable that catches its own exceptions and logs them usingCommon.error(Throwable, String, boolean, CommandSender...).Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SchedulerTaskException
-
-
Method Details
-
wrap
Wraps a runnable into a runnable that catches its own exceptions and logs them usingCommon.error(Throwable, String, boolean, CommandSender...).- Parameters:
runnable- The runnable- Returns:
- The wrapped runnable
-