Class AttachmentDataStreamSizeMismatchException

  • All Implemented Interfaces:

    public class AttachmentDataStreamSizeMismatchException
    extends RuntimeException
    Thrown when the the size of the InputStream received to create an attachment is different to the declared size or length of the attachment. This could happen if an upload is cancelled and only a portion of the file is transferred.
    See Also:
    Serialized Form
    • Constructor Detail

      • AttachmentDataStreamSizeMismatchException

        public AttachmentDataStreamSizeMismatchException​(long expectedSize,
                                                         long actualSize)
        Constructs an AttachmentDataStreamSizeMismatchException.
        expectedSize - expected size in bytes
        actualSize - actual size in bytes
    • Method Detail

      • getExpectedSize

        public long getExpectedSize()
        expected size in bytes
      • getActualSize

        public long getActualSize()
        actual size in bytes