Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
package at.asit.pdfover.gui.workflow.states;

import java.io.IOException;
import java.net.ConnectException;
import java.net.SocketException;
import java.net.URI;
import java.net.UnknownHostException;
import java.util.function.Supplier;
Expand Down Expand Up @@ -159,7 +159,7 @@ public void displayError(Exception e) {
{
log.error("Failed to resolve hostname", e);
message = Messages.formatString("error.CouldNotResolveHostname", e.getMessage());
} else if (e instanceof ConnectException) {
} else if (e instanceof SocketException) {
log.error("Failed to connect", e);
message = Messages.formatString("error.FailedToConnect", e.getMessage());
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
package at.asit.pdfover.gui.workflow.states;

//Imports
import java.net.ConnectException;
import java.net.SocketException;

import org.eclipse.swt.SWT;

Expand Down Expand Up @@ -93,7 +93,7 @@ public void run() {
while (cause.getCause() != null)
cause = cause.getCause();

if (cause instanceof ConnectException) {
if (cause instanceof SocketException) {
message += ": " + cause.getMessage();
} else if (cause instanceof SLPdfAsException) {
var ex = ((SLPdfAsException)cause);
Expand Down
Loading