norsys.netica
Class NeticaException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--norsys.netica.NeticaException
- All Implemented Interfaces:
- java.io.Serializable
- public class NeticaException
- extends java.lang.Exception
A java.lang.Exception that holds extra information when Netica reports an error for some attempted operation.
- Since:
- 2.08
- Version:
- 2.21 - May 7, 2002
- See Also:
- Serialized Form
Constructor Summary |
NeticaException(int errorNumber,
java.lang.String msg)
Constructs a numbered NeticaException with the given error message. |
NeticaException(java.lang.String msg)
Constructs a generic NeticaException with the given error message. |
Method Summary |
java.util.Vector |
getNeticaErrors()
Returns a Vector of the NeticaError objects describing the faults that are responsible for this exception. |
java.lang.String |
toString()
Returns a formatted String detailing the nature of this exception and listing the NeticaErrors which are responsible for it. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NeticaException
public NeticaException(java.lang.String msg)
throws NeticaException
- Constructs a generic NeticaException with the given error message.
Parameters:
String | | msg | | A string describing the exception. |
Example:
NeticaException ne = new NeticaException( "A problem occurred that cannot be handled at this level." );
throw ne;
NeticaException
public NeticaException(int errorNumber,
java.lang.String msg)
throws NeticaException
- Constructs a numbered NeticaException with the given error message.
errorNumber must be between 1 and 999, inclusive. Numbers outside of this range are reserved by Netica, and, if used here, will cause an exception to be thrown.
Parameters:
int | | errorNumber | | A Netica Error code associated with this exception. Must be between 1 and 999, inclusive. |
String | | msg | | A string describing the exception. |
getNeticaErrors
public java.util.Vector getNeticaErrors()
- Returns a Vector of the
NeticaError
objects describing the faults that are responsible for this exception.
Version:
This method is available in all versions.
toString
public java.lang.String toString()
- Returns a formatted String detailing the nature of this exception and listing the NeticaErrors which are responsible for it.
Version:
This method is available in all versions.
- Overrides:
toString
in class java.lang.Throwable