1 package net.avcompris.guixer.core;
2
3 import java.io.IOException;
4
5 import javax.annotation.Nullable;
6
7 import org.openqa.selenium.WebDriverException;
8
9 final class CommandConsoleLoggerImpl extends AbstractCommandLoggerImpl {
10
11 public CommandConsoleLoggerImpl(
12 final Command delegate,
13 final Context context,
14 @Nullable final String actionShortDescription
15 ) throws IOException {
16
17 super(delegate, context, context.getConsoleLogger(), actionShortDescription);
18 }
19
20 public CommandConsoleLoggerImpl(
21 final Command delegate,
22 final Context context
23 ) throws IOException {
24
25 this(delegate, context, null);
26 }
27
28 @Override
29 protected void handleError(final WebDriverException e) throws IOException {
30
31 logger.error(e);
32
33 throw e;
34 }
35 }