Skip to content

Commit 98ff012

Browse files
committed
Avoid confusion between ErrorCode and ErrorCodeSupplier
1 parent 2f4ea64 commit 98ff012

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

presto-spi/src/main/java/com/facebook/presto/spi/PrestoException.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ public class PrestoException
2020
{
2121
private final ErrorCode errorCode;
2222

23-
public PrestoException(ErrorCodeSupplier errorCode, String message)
23+
public PrestoException(ErrorCodeSupplier errorCodeSupplier, String message)
2424
{
25-
this(errorCode, message, null);
25+
this(errorCodeSupplier, message, null);
2626
}
2727

28-
public PrestoException(ErrorCodeSupplier errorCode, Throwable throwable)
28+
public PrestoException(ErrorCodeSupplier errorCodeSupplier, Throwable throwable)
2929
{
30-
this(errorCode, null, throwable);
30+
this(errorCodeSupplier, null, throwable);
3131
}
3232

3333
public PrestoException(ErrorCodeSupplier errorCodeSupplier, String message, Throwable cause)

0 commit comments

Comments
 (0)