Class AttachmentDataStreamSizeMismatchException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.atlassian.confluence.pages.attachments.AttachmentDataStreamSizeMismatchException
-
- All Implemented Interfaces:
Serializable
public class AttachmentDataStreamSizeMismatchException extends RuntimeException
Thrown when the the size of theInputStream
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 Summary
Constructors Constructor Description AttachmentDataStreamSizeMismatchException(long expectedSize, long actualSize)
Constructs an AttachmentDataStreamSizeMismatchException.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getActualSize()
long
getExpectedSize()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-