Class NetException

java.lang.Object
java.lang.Throwable
java.lang.Exception
jmt.common.exception.NetException
All Implemented Interfaces:
Serializable

public class NetException extends Exception
This class implements a generic QueueNet exception.
Author:
Francesco Radaelli
See Also:
  • Constructor Details

    • NetException

      public NetException(Object ThrownBy, int Type, String Message)
      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.
    • NetException

      public NetException(Object ThrownBy, int Type, String Message, NetException HangingException)
      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

      public NetException(String s)
  • Method Details

    • thrownBy

      public Object 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.