Skip to content
Merged
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 @@ -27,6 +27,7 @@
import io.serverlessworkflow.impl.auth.AuthUtils;
import io.serverlessworkflow.types.Errors;
import jakarta.ws.rs.ProcessingException;
import jakarta.ws.rs.WebApplicationException;
import jakarta.ws.rs.client.Invocation.Builder;
import jakarta.ws.rs.core.Response;
import jakarta.ws.rs.core.Response.Status.Family;
Expand Down Expand Up @@ -59,11 +60,10 @@ public WorkflowModel apply(
.fromAny(response.readEntity(converter.responseType()));
} catch (ProcessingException | IllegalStateException ex) {
throw new WorkflowException(
WorkflowError.error(Errors.DATA.toString(), Errors.DATA.status())
.details(ex.getMessage())
.instance(task.position().jsonPointer())
.build(),
ex);
WorkflowError.communication(Errors.DATA.status(), task, ex).build(), ex);
} catch (WebApplicationException ex) {
throw new WorkflowException(
WorkflowError.communication(ex.getResponse().getStatus(), task, ex).build(), ex);
}
}

Expand Down
Loading