Class ExactException

java.lang.Object
java.lang.Throwable
java.lang.Exception
it.ramecera.salad.everyday.ExactException
All Implemented Interfaces:
java.io.Serializable

public class ExactException
extends java.lang.Exception

Class to handle an exception with a code specification.

Company: Rameceraâ„¢
Creation date: 2020-04-09
Last updated: 2020-06-13
Modifications: none

Author:
M. Maglioni
See Also:
Serialized Form
  • Field Summary

    Fields 
    Modifier and Type Field Description
    java.lang.String className
    in which class the exception occurred
    int code
    numerical information, for use as desired
    java.lang.String datum
    string information, for use as desired
    int line
    in which element the exception occurred
    java.lang.String method
    in which method the exception occurred
    int n
    full information, for use as desired
  • Constructor Summary

    Constructors 
    Constructor Description
    ExactException()
    Default constructor.
    ExactException​(java.lang.String s)
    Next constructor.
    ExactException​(java.lang.String datum, int code, java.lang.String className, java.lang.String methodName)
    Next constructor.
    ExactException​(java.lang.String datum, int code, java.lang.String className, java.lang.String methodName, int line)
    Next constructor.
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getData()
    Creation date: 2020-04-20
    Last updated: 2020-04-20
    Class: ExactException
    void setDatum​(java.lang.String datum)
    Creation date: 2020-04-20
    Last updated: 2020-06-13
    Class: ExactException

    Methods inherited from class java.lang.Throwable

    addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • datum

      public java.lang.String datum
      string information, for use as desired
    • code

      public int code
      numerical information, for use as desired
    • n

      public int n
      full information, for use as desired
    • className

      public java.lang.String className
      in which class the exception occurred
    • method

      public java.lang.String method
      in which method the exception occurred
    • line

      public int line
      in which element the exception occurred
  • Constructor Details

    • ExactException

      public ExactException()

      Default constructor.

      Creation date: 2020-04-09
      Last updated: 2020-06-13
      Modifications: none

    • ExactException

      public ExactException​(java.lang.String s)

      Next constructor.

      Creation date: 2020-04-09
      Last updated: 2020-04-09
      Modifications: none

      Parameters:
      s - message associated with the exception, sent to the superclass
    • ExactException

      public ExactException​(java.lang.String datum, int code, java.lang.String className, java.lang.String methodName)

      Next constructor.

      Creation date: 2020-04-09
      Last updated: 2020-06-13
      Modifications: none

      Parameters:
      datum - message associated with the exception
      code - error code
      className - obvious
      methodName - obvious
    • ExactException

      public ExactException​(java.lang.String datum, int code, java.lang.String className, java.lang.String methodName, int line)

      Next constructor.

      Creation date: 2020-04-09
      Last updated: 2020-06-13
      Modifications: none

      Parameters:
      datum - message associated with the exception
      code - error code
      className - obvious
      methodName - obvious
      line - which element produced an error
  • Method Details

    • getData

      public java.lang.String getData()

      Creation date: 2020-04-20
      Last updated: 2020-04-20
      Class: ExactException

      Returns:
      the datum
    • setDatum

      public void setDatum​(java.lang.String datum)

      Creation date: 2020-04-20
      Last updated: 2020-06-13
      Class: ExactException

      Parameters:
      datum - obvious