Class AttachmentDataStreamSizeMismatchException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.atlassian.confluence.pages.attachments.AttachmentDataStreamSizeMismatchException
- All Implemented Interfaces:
Serializable
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:
-
Constructor Summary
ConstructorsConstructorDescriptionAttachmentDataStreamSizeMismatchException
(long expectedSize, long actualSize) Constructs an AttachmentDataStreamSizeMismatchException. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AttachmentDataStreamSizeMismatchException
public AttachmentDataStreamSizeMismatchException(long expectedSize, long actualSize) Constructs an AttachmentDataStreamSizeMismatchException.- Parameters:
expectedSize
- expected size in bytesactualSize
- actual size in bytes
-
-
Method Details
-
getExpectedSize
public long getExpectedSize()- Returns:
- expected size in bytes
-
getActualSize
public long getActualSize()- Returns:
- actual size in bytes
-