All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.schlichtherle.truezip.fs.FsNeedsWriteLockException Maven / Gradle / Ivy

/*
 * Copyright (C) 2005-2015 Schlichtherle IT Services.
 * All rights reserved. Use is subject to license terms.
 */
package de.schlichtherle.truezip.fs;

import de.schlichtherle.truezip.util.ControlFlowException;
import javax.annotation.concurrent.Immutable;

/**
 * Indicates that the file system needs to get write locked before the
 * operation can get retried.
 *
 * @see    FsLockController
 * @author Christian Schlichtherle
 */
@Immutable
@SuppressWarnings("serial") // serializing an exception for a temporary event is nonsense!
final class FsNeedsWriteLockException extends ControlFlowException {

    private static final FsNeedsWriteLockException
            INSTANCE = new FsNeedsWriteLockException();

    private FsNeedsWriteLockException() { }

    static FsNeedsWriteLockException get() {
        return isTraceable() ? new FsNeedsWriteLockException() : INSTANCE;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy