Class QuantizationException

  • All Implemented Interfaces:
    java.io.Serializable

    public class QuantizationException
    extends java.lang.Exception
    This exception is thrown during the quantization process if something goes wrong. For example, quantization strategies that depend on an interval [min, max] where min (max) is, in general, the minimum (maximum) of all minima (maxima) calculated in a given stack (for a given wavelength and timepoint).
    Since:
    OME2.2
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      QuantizationException()
      Creates a new exception.
      QuantizationException​(java.lang.String message)
      Constructs a new exception with the specified detail message.
      QuantizationException​(java.lang.String message, java.lang.Throwable cause)
      Constructs a new exception with the specified detail message and cause.
      QuantizationException​(java.lang.Throwable cause)
      Constructs a new exception with the specified cause.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getWavelength()
      Returns the index of the wavelength that couldn't be rendered.
      void setWavelength​(int index)
      Sets the index of the wavelength that couldn't be rendered.
      • 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

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • QuantizationException

        public QuantizationException()
        Creates a new exception.
      • QuantizationException

        public QuantizationException​(java.lang.String message)
        Constructs a new exception with the specified detail message.
        Parameters:
        message - Short explanation of the problem.
      • QuantizationException

        public QuantizationException​(java.lang.Throwable cause)
        Constructs a new exception with the specified cause.
        Parameters:
        cause - The exception that caused this one to be risen.
      • QuantizationException

        public QuantizationException​(java.lang.String message,
                                     java.lang.Throwable cause)
        Constructs a new exception with the specified detail message and cause.
        Parameters:
        message - Short explanation of the problem.
        cause - The exception that caused this one to be risen.
    • Method Detail

      • setWavelength

        public void setWavelength​(int index)
        Sets the index of the wavelength that couldn't be rendered.
        Parameters:
        index - The index of the wavelength.
      • getWavelength

        public int getWavelength()
        Returns the index of the wavelength that couldn't be rendered.
        Returns:
        See above.