Class ServerEventException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.destroystokyo.paper.exception.ServerException
com.destroystokyo.paper.exception.ServerPluginException
com.destroystokyo.paper.exception.ServerEventException
- All Implemented Interfaces:
Serializable
Exception thrown when a server event listener throws an exception
- See Also:
- Serialized Form
-
Constructor Summary
ModifierConstructorDescriptionprotected
ServerEventException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, Plugin responsiblePlugin, Listener listener, Event event)
ServerEventException(String message, Throwable cause, Plugin responsiblePlugin, Listener listener, Event event)
ServerEventException(Throwable cause, Plugin responsiblePlugin, Listener listener, Event event)
-
Method Summary
Modifier and TypeMethodDescriptiongetEvent()
Gets the event which caused the exceptionGets the listener which threw the exceptionMethods inherited from class com.destroystokyo.paper.exception.ServerPluginException
getResponsiblePlugin
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ServerEventException
-
ServerEventException
-
ServerEventException
-
-
Method Details
-
getListener
Gets the listener which threw the exception- Returns:
- event listener
-
getEvent
Gets the event which caused the exception- Returns:
- event
-