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 about one or more serious
Netica error conditions. A NeticaException will be thrown whenever Netica
reports one or more serious errors for some attempted operation.
Serious errors are those of type either NeticaError.ERROR_ERR
or NeticaError.XXX_ERR
.
- Since:
- 2.08
- See Also:
- Serialized Form
Constructor Summary |
NeticaException(int errorNumber,
java.lang.String msg)
Construct a numbered NeticaException. |
NeticaException(java.lang.String msg)
Construct a generic NeticaException. |
Method Summary |
java.util.Vector |
getNeticaErrors()
Returns a Vector of the NeticaError objects that are responsible for this exception. |
java.lang.String |
toString()
Returns a formatted String detailing the nature of this exception and a list of NeticaErrors which are responsible for this exception. |
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
- Construct a generic NeticaException.
- Parameters:
msg
- A string describing the exception.
NeticaException
public NeticaException(int errorNumber,
java.lang.String msg)
throws NeticaException
- Construct a numbered NeticaException. errorNumber must be >=20000 and < 30000. Numbers outside of this range are reserved by Netica and if used here, will cause a NeticaException to be thrown.
- Parameters:
errorNumber
- A Netica Error code associated with this exception. Must be >=20000 and < 30000.msg
- A string describing the exception.
getNeticaErrors
public java.util.Vector getNeticaErrors()
- Returns a Vector of the
NeticaError
objects that are responsible for this exception.
Version:
This function is available in all versions.
toString
public java.lang.String toString()
- Returns a formatted String detailing the nature of this exception and a list of NeticaErrors which are responsible for this exception.
Version:
This function is available in all versions.
- Overrides:
toString
in class java.lang.Throwable