- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.github.f4b6a3.uuid.exception.InvalidUuidException
-
- All Implemented Interfaces:
Serializable
public final class InvalidUuidException extends RuntimeException
Runtime exception to be used when an invalid UUID is received as argument.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InvalidUuidException(String message)InvalidUuidException(String message, Throwable cause)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InvalidUuidExceptionnewInstance(Object obj)Factory method for creating a runtime exception.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
newInstance
public static InvalidUuidException newInstance(Object obj)
Factory method for creating a runtime exception.- Parameters:
obj- an object that can, for example, a string of a char array.- Returns:
- a runtime exception
-
-