com.cra.bnet.error
Class BnetError

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--com.cra.bnet.error.BnetError
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CycleError, DisconnectedNetworkError, DuplicateEdgeError, DuplicateNodeError, InconsistentEvidenceError, SelfLoopError, UnlimitedNodesError

public class BnetError
extends RuntimeException

A BNet-related error.

See Also:
Serialized Form

Constructor Summary
BnetError(BayesianNetwork network)
          Creates a new BnetError.
BnetError(BayesianNetwork network, String message)
          Creates a new BnetError using the specified message.
 
Method Summary
 BayesianNetwork getNetwork()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BnetError

public BnetError(BayesianNetwork network)
Creates a new BnetError.

Parameters:
network - Bayesian network the error occurred in.

BnetError

public BnetError(BayesianNetwork network,
                 String message)
Creates a new BnetError using the specified message.

Parameters:
network - Bayesian network the error occurred in.
message - error message.
Method Detail

getNetwork

public BayesianNetwork getNetwork()