Class NetException
java.lang.Object
java.lang.Throwable
java.lang.Exception
jmt.common.exception.NetException
- All Implemented Interfaces:
Serializable
This class implements a generic QueueNet exception.
- Author:
- Francesco Radaelli
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNetException(Object ThrownBy, int Type, String Message) Constructs a new exception with the specified detail message.NetException(Object ThrownBy, int Type, String Message, NetException HangingException) Constructs a new exception with the specified detail message. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NetException
-
NetException
Constructs a new exception with the specified detail message.- Parameters:
ThrownBy- The object which throws the exception.Type- Type of the exception (internal object type).Message- The detail message.HangingException- Hanging exception.
-
NetException
-
-
Method Details
-
thrownBy
Gets the object which throws exception.- Returns:
- The object which throws this exception.
-
getType
public int getType()Gets the internal type of exception.- Returns:
- Type of the exception.
-