Module RandomTrainSimWorld2.main
Class NoElementSelectedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.github.freddyyj.randomtrainsimworld.exception.NoElementSelectedException
- All Implemented Interfaces:
Serializable
public class NoElementSelectedException extends RuntimeException
Throws if no elements are selected when random picking.
- Author:
- FreddyYJ_
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description NoElementSelectedException()
NoElementSelectedException(String message)
NoElementSelectedException(String message, Throwable cause)
NoElementSelectedException(Throwable cause)
-
Method Summary
Modifier and Type Method Description Throwable
getCause()
String
getMessage()
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NoElementSelectedException
-
NoElementSelectedException
-
NoElementSelectedException
-
NoElementSelectedException
public NoElementSelectedException()
-
-
Method Details
-
getMessage
- Overrides:
getMessage
in classThrowable
-
getCause
-