SSJ API Documentation
Stochastic Simulation in Java
Loading...
Searching...
No Matches
umontreal.ssj.rng.RandomStreamInstantiationException Class Reference

This exception is thrown when a random stream factory cannot instantiate a stream on a call to its umontreal.ssj.rng.RandomStreamFactory.newInstance method. More...

Inheritance diagram for umontreal.ssj.rng.RandomStreamInstantiationException:

Public Member Functions

 RandomStreamInstantiationException (RandomStreamFactory factory)
 Constructs a new random stream instantiation exception with no message, no cause, and thrown by the given factory.
 RandomStreamInstantiationException (RandomStreamFactory factory, String message)
 Constructs a new random stream instantiation exception with the given message, no cause, and concerning factory.
 RandomStreamInstantiationException (RandomStreamFactory factory, Throwable cause)
 Constructs a new random stream instantiation exception with no message, the given cause, and concerning factory.
 RandomStreamInstantiationException (RandomStreamFactory factory, String message, Throwable cause)
 Constructs a new random stream instantiation exception with the given message, the supplied cause, and concerning factory.
RandomStreamFactory getRandomStreamFactory ()
 Returns the random stream factory concerned by this exception.
String toString ()
 Returns a short description of the exception.

Detailed Description

This exception is thrown when a random stream factory cannot instantiate a stream on a call to its umontreal.ssj.rng.RandomStreamFactory.newInstance method.

Definition at line 34 of file RandomStreamInstantiationException.java.

Constructor & Destructor Documentation

◆ RandomStreamInstantiationException() [1/4]

umontreal.ssj.rng.RandomStreamInstantiationException.RandomStreamInstantiationException ( RandomStreamFactory factory)

Constructs a new random stream instantiation exception with no message, no cause, and thrown by the given factory.

Parameters
factorythe random stream factory which thrown the exception.

Definition at line 43 of file RandomStreamInstantiationException.java.

◆ RandomStreamInstantiationException() [2/4]

umontreal.ssj.rng.RandomStreamInstantiationException.RandomStreamInstantiationException ( RandomStreamFactory factory,
String message )

Constructs a new random stream instantiation exception with the given message, no cause, and concerning factory.

Parameters
factorythe random stream factory concerned by the exception.
messagethe error message describing the exception.

Definition at line 55 of file RandomStreamInstantiationException.java.

◆ RandomStreamInstantiationException() [3/4]

umontreal.ssj.rng.RandomStreamInstantiationException.RandomStreamInstantiationException ( RandomStreamFactory factory,
Throwable cause )

Constructs a new random stream instantiation exception with no message, the given cause, and concerning factory.

Parameters
factorythe random stream factory concerned by the exception.
causethe cause of the exception.

Definition at line 67 of file RandomStreamInstantiationException.java.

◆ RandomStreamInstantiationException() [4/4]

umontreal.ssj.rng.RandomStreamInstantiationException.RandomStreamInstantiationException ( RandomStreamFactory factory,
String message,
Throwable cause )

Constructs a new random stream instantiation exception with the given message, the supplied cause, and concerning factory.

Parameters
factorythe random stream factory concerned by the exception.
messagethe error message describing the exception.
causethe cause of the exception.

Definition at line 80 of file RandomStreamInstantiationException.java.

Member Function Documentation

◆ getRandomStreamFactory()

RandomStreamFactory umontreal.ssj.rng.RandomStreamInstantiationException.getRandomStreamFactory ( )

Returns the random stream factory concerned by this exception.

Returns
the random stream factory concerned by this exception.

Definition at line 90 of file RandomStreamInstantiationException.java.

◆ toString()

String umontreal.ssj.rng.RandomStreamInstantiationException.toString ( )

Returns a short description of the exception.

If getRandomStreamFactory returns 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 of getRandomStreamFactory .toString();
d) if java.lang.Throwable.getMessage is non-null, ", " followed by the result of java.lang.Throwable.getMessage.

Returns
a string representation of the exception.

Definition at line 105 of file RandomStreamInstantiationException.java.


The documentation for this class was generated from the following file: