Skip to content

Commit

Permalink
Polishing #1943
Browse files Browse the repository at this point in the history
Add author and since tags.

Original pull request: #1944.
  • Loading branch information
mp911de committed Jan 4, 2022
1 parent 6146aef commit 462264e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
5 changes: 3 additions & 2 deletions src/main/java/io/lettuce/core/RedisReadOnlyException.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2021 the original author or authors.
* Copyright 2021-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -18,7 +18,8 @@
/**
* Exception that gets thrown when Redis replies with a {@code READONLY} error response.
*
* @author anothertobi
* @author Tobias Nehrlich
* @since 6.1.6
*/
@SuppressWarnings("serial")
public class RedisReadOnlyException extends RedisCommandExecutionException {
Expand Down
8 changes: 7 additions & 1 deletion src/main/java/io/lettuce/core/internal/ExceptionFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,18 @@
import java.time.format.DateTimeFormatterBuilder;
import java.time.temporal.ChronoField;

import io.lettuce.core.*;
import io.lettuce.core.RedisBusyException;
import io.lettuce.core.RedisCommandExecutionException;
import io.lettuce.core.RedisCommandTimeoutException;
import io.lettuce.core.RedisLoadingException;
import io.lettuce.core.RedisNoScriptException;
import io.lettuce.core.RedisReadOnlyException;

/**
* Factory for Redis exceptions.
*
* @author Mark Paluch
* @author Tobias Nehrlich
* @since 4.5
*/
public abstract class ExceptionFactory {
Expand Down
9 changes: 6 additions & 3 deletions src/test/java/io/lettuce/core/ExceptionFactoryUnitTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,19 @@
*/
package io.lettuce.core;

import io.lettuce.core.internal.ExceptionFactory;

import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.*;

import java.time.Duration;

import org.junit.jupiter.api.Test;

import io.lettuce.core.internal.ExceptionFactory;

/**
* Unit tests for {@link ExceptionFactory}.
*
* @author Mark Paluch
* @author Tobias Nehrlich
*/
class ExceptionFactoryUnitTests {

Expand Down

0 comments on commit 462264e

Please sign in to comment.