Creates a new ChecksumMismatchError instance.
Parsed B2 error response body.
Optionaloptions: B2ErrorOptionsOptional metadata from response headers.
ReadonlycodeB2 error code identifying the error type (e.g. expired_auth_token).
Optional ReadonlyrequestB2 request ID from the X-Bz-Request-Id response header, if present.
ReadonlyretryableWhether this error is transient and the request can be retried.
Optional ReadonlyretryRetry delay in seconds from the Retry-After response header, if present.
ReadonlystatusHTTP status code returned by the B2 API.
Thrown when the uploaded file's SHA-1 checksum does not match the expected value.
When B2 returns
bad_sha1_checksum, classifyError instantiates this class so callers can handle checksum failures withinstanceof. Genericbad_requestchecksum failures continue to classify as BadRequestError.