io.github.daggerok.distributed.lock.mongodb.LockException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of distributed-lock-mongodb Show documentation
Show all versions of distributed-lock-mongodb Show documentation
Core distributed-lock-mongodb module
package io.github.daggerok.distributed.lock.mongodb;
import lombok.experimental.StandardException;
@StandardException
public class LockException extends RuntimeException {
public static LockException lockIsRequired() {
return new LockException("lock is required");
}
public static LockException executionIsRequired() {
return new LockException("execution is required");
}
public static LockException runnableIsRequired() {
return new LockException("runnable is required");
}
public static LockException lockIdentifierIsRequired() {
return new LockException("lock by identifier is required");
}
public static LockException lockIdIsRequired() {
return new LockException("lock ID is required");
}
}