umontreal.iro.lecuyer.rng
Class RandomStreamInstantiationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- umontreal.iro.lecuyer.rng.RandomStreamInstantiationException
-
- All Implemented Interfaces:
- java.io.Serializable
public class RandomStreamInstantiationException extends java.lang.RuntimeExceptionThis exception is thrown when a random stream factory cannot instantiate a stream on a call to itsnewInstancemethod.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description RandomStreamInstantiationException(RandomStreamFactory factory)Constructs a new random stream instantiation exception with no message, no cause, and thrown by the given factory.RandomStreamInstantiationException(RandomStreamFactory factory, java.lang.String message)Constructs a new random stream instantiation exception with the given message, no cause, and concerning factory.RandomStreamInstantiationException(RandomStreamFactory factory, java.lang.String message, java.lang.Throwable cause)Constructs a new random stream instantiation exception with the given message, the supplied cause, and concerning factory.RandomStreamInstantiationException(RandomStreamFactory factory, java.lang.Throwable cause)Constructs a new random stream instantiation exception with no message, the given cause, and concerning factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description RandomStreamFactorygetRandomStreamFactory()Returns the random stream factory concerned by this exception.java.lang.StringtoString()Returns a short description of the exception.
-
-
-
Constructor Detail
-
RandomStreamInstantiationException
public RandomStreamInstantiationException(RandomStreamFactory factory)
Constructs a new random stream instantiation exception with no message, no cause, and thrown by the given factory.- Parameters:
factory- the random stream factory which thrown the exception.
-
RandomStreamInstantiationException
public RandomStreamInstantiationException(RandomStreamFactory factory, java.lang.String message)
Constructs a new random stream instantiation exception with the given message, no cause, and concerning factory.- Parameters:
factory- the random stream factory concerned by the exception.message- the error message describing the exception.
-
RandomStreamInstantiationException
public RandomStreamInstantiationException(RandomStreamFactory factory, java.lang.Throwable cause)
Constructs a new random stream instantiation exception with no message, the given cause, and concerning factory.- Parameters:
factory- the random stream factory concerned by the exception.cause- the cause of the exception.
-
RandomStreamInstantiationException
public RandomStreamInstantiationException(RandomStreamFactory factory, java.lang.String message, java.lang.Throwable cause)
Constructs a new random stream instantiation exception with the given message, the supplied cause, and concerning factory.- Parameters:
factory- the random stream factory concerned by the exception.message- the error message describing the exception.cause- the cause of the exception.
-
-
Method Detail
-
getRandomStreamFactory
public RandomStreamFactory getRandomStreamFactory()
Returns the random stream factory concerned by this exception.- Returns:
- the random stream factory concerned by this exception.
-
toString
public java.lang.String toString()
Returns a short description of the exception. IfgetRandomStreamFactoryreturns null, this calls super.toString. Otherwise, the result is the concatenation of: a) the name of the actual class of the exception;
b) the string ": For random stream factory ";
c) the result ofgetRandomStreamFactory.toString();
d) ifgetMessageis non-null, ", " followed by the result ofgetMessage.- Overrides:
toStringin classjava.lang.Throwable- Returns:
- a string representation of the exception.
-
-
DMelt 3.0 © DataMelt by jWork.ORG