JSMILE: SMILEException
From DSL
Many of the methods of jSMILE classes throw exceptions. SMILEException class has been designed to make it possible to handle the library's exceptions in isolation from other exception classes.
It is not necessary to handle runtime exceptions (and all others that extends them) in Java. That is why RuntimeException class has been chosen as a superclass for SMILEException. Therefore, the decision on whether or not to handle the possible exceptions is up to the user.
getMessage() method can be used to retrieve the exception message.
Usage example:
Network net = new Network();
try {
net.getNode("A");
}
catch (SMILEException e) {
System.out.println(e.getMessage());
}
[edit] Methods
- SMILEException(String msg)
The constructor.
