Package de.marcely.bedwars.api.exception
Class ArenaConditionParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
de.marcely.bedwars.api.exception.ArenaConditionParseException
- All Implemented Interfaces:
Serializable
Thrown when an arena condition could not be parsed.
- See Also:
-
Constructor Summary
ConstructorDescriptionArenaConditionParseException
(String message) ArenaConditionParseException
(String message, int position) -
Method Summary
Modifier and TypeMethodDescriptionint
Get the char position where the exception occurred.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ArenaConditionParseException
-
ArenaConditionParseException
-
-
Method Details
-
getPosition
public int getPosition()Get the char position where the exception occurred.It may return -1 if the position is unknown.
- Returns:
- The char position of the original string with the error. May be -1
-