public class RandomStreamInstantiationException
extends java.lang.RuntimeException
newInstance method.| 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.
|
| Modifier and Type | Method and Description |
|---|---|
RandomStreamFactory |
getRandomStreamFactory()
Returns the random stream factory concerned by this exception.
|
java.lang.String |
toString()
Returns a short description of the exception.
|
public RandomStreamInstantiationException(RandomStreamFactory factory)
factory - the random stream factory which thrown the exception.public RandomStreamInstantiationException(RandomStreamFactory factory, java.lang.String message)
factory - the random stream factory concerned by the exception.message - the error message describing the exception.public RandomStreamInstantiationException(RandomStreamFactory factory, java.lang.Throwable cause)
factory - the random stream factory concerned by the exception.cause - the cause of the exception.public RandomStreamInstantiationException(RandomStreamFactory factory, java.lang.String message, java.lang.Throwable cause)
factory - the random stream factory concerned by the exception.message - the error message describing the exception.cause - the cause of the exception.public RandomStreamFactory getRandomStreamFactory()
public java.lang.String toString()
getRandomStreamFactory returns null,
this calls super.toString. Otherwise, the
result is the concatenation of:
a) the name of the actual class of the exception;
getRandomStreamFactory.toString();
getMessage is non-null,
", " followed by the result of
getMessage.toString in class java.lang.ThrowableTo submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.