Class LayerNotEnoughDataException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.daffodil.api.layers.exceptions.LayerNotEnoughDataException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionLayerNotEnoughDataException
(int numNeededBytes, int numAvailableBytes) Creates a new instance of LayerNotEnoughDataException with the specified number of needed bytes and available bytes.LayerNotEnoughDataException
(String msg, 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. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
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 layernumAvailableBytes
- the number of bytes available for the layer
-
LayerNotEnoughDataException
-
LayerNotEnoughDataException
-
LayerNotEnoughDataException
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
-