Class LayerNotEnoughDataException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.daffodil.api.layers.exceptions.LayerNotEnoughDataException
All Implemented Interfaces:
Serializable

public class LayerNotEnoughDataException extends Exception
LayerNotEnoughDataException is a custom exception class that represents an exception that occurs when there is insufficient data for a layer in a program.
See Also:
  • Constructor Details

    • LayerNotEnoughDataException

      public LayerNotEnoughDataException(int numNeededBytes, int numAvailableBytes)
      Creates a new instance of LayerNotEnoughDataException with the specified number of needed bytes and available bytes.
      Parameters:
      numNeededBytes - the number of bytes needed by the layer
      numAvailableBytes - the number of bytes available for the layer
    • LayerNotEnoughDataException

      public LayerNotEnoughDataException(String msg, Throwable cause)
    • LayerNotEnoughDataException

      public LayerNotEnoughDataException(String msg)
    • LayerNotEnoughDataException

      public LayerNotEnoughDataException(Throwable cause)
      When creating an exception with just a cause, we also synthesize some sort of message, because otherwise SLF4J doesn't do so, and you get out errors like '[error] null' because you didn't supply a message.
      Parameters:
      cause - the cause of this processing exception