Class InvalidVersionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.fren_gor.ultimateAdvancementAPI.exceptions.InvalidVersionException
- All Implemented Interfaces:
Serializable
This exception is thrown when an invalid version is detected.
- See Also:
-
Constructor Summary
ModifierConstructorDescriptionInvalidVersionException
(@Nullable String expected, @Nullable String found) Creates a newInvalidVersionException
.Creates a newInvalidVersionException
.InvalidVersionException
(@Nullable String expected, @Nullable String found, String message, Throwable cause) Creates a newInvalidVersionException
.protected
InvalidVersionException
(@Nullable String expected, @Nullable String found, String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) Creates a newInvalidVersionException
.Creates a newInvalidVersionException
.InvalidVersionException
(String message) InvalidVersionException
(String message, Throwable cause) protected
InvalidVersionException
(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) InvalidVersionException
(Throwable cause) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidVersionException
public InvalidVersionException() -
InvalidVersionException
-
InvalidVersionException
-
InvalidVersionException
-
InvalidVersionException
-
InvalidVersionException
public InvalidVersionException(@Nullable @Nullable String expected, @Nullable @Nullable String found) Creates a newInvalidVersionException
.- Parameters:
expected
- The expected version.found
- The real version.
-
InvalidVersionException
public InvalidVersionException(@Nullable @Nullable String expected, @Nullable @Nullable String found, String message) Creates a newInvalidVersionException
.- Parameters:
expected
- The expected version.found
- The real version.message
- SeeRuntimeException(String)
.
-
InvalidVersionException
public InvalidVersionException(@Nullable @Nullable String expected, @Nullable @Nullable String found, String message, Throwable cause) Creates a newInvalidVersionException
.- Parameters:
expected
- The expected version.found
- The real version.message
- SeeRuntimeException(String, Throwable)
.cause
- SeeRuntimeException(String, Throwable)
.
-
InvalidVersionException
public InvalidVersionException(@Nullable @Nullable String expected, @Nullable @Nullable String found, Throwable cause) Creates a newInvalidVersionException
.- Parameters:
expected
- The expected version.found
- The real version.cause
- SeeRuntimeException(Throwable)
.
-
InvalidVersionException
protected InvalidVersionException(@Nullable @Nullable String expected, @Nullable @Nullable String found, String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) Creates a newInvalidVersionException
.- Parameters:
expected
- The expected version.found
- The real version.message
- SeeRuntimeException(String, Throwable, boolean, boolean)
.cause
- SeeRuntimeException(String, Throwable, boolean, boolean)
.enableSuppression
- SeeRuntimeException(String, Throwable, boolean, boolean)
.writableStackTrace
- SeeRuntimeException(String, Throwable, boolean, boolean)
.
-
-
Method Details
-
getExpected
Gets the expected version.- Returns:
- The expected version. Might be
null
.
-
getFound
Gets the real version.- Returns:
- The real version. Might be
null
.
-