Skip to content

Commit

Permalink
Remove WebApplicationException as parent of WebClientApplicationExcep…
Browse files Browse the repository at this point in the history
…tion

This is done because if this exception is thrown from the client when
the server parts have not been installed, then we end up with

'java.lang.RuntimeException: Resteasy Reactive server side components are not installed'

in the logs
  • Loading branch information
geoand committed Apr 21, 2021
1 parent 0892d85 commit 95e6d22
Showing 1 changed file with 3 additions and 29 deletions.
Original file line number Diff line number Diff line change
@@ -1,35 +1,9 @@
package org.jboss.resteasy.reactive.client.api;

import javax.ws.rs.WebApplicationException;
import javax.ws.rs.core.Response;

/**
* Subclass of {@link WebApplicationException} for use by clients, which forbids setting a response that
* would be used by the server.
* FIXME: I'd rather this be disjoint from WebApplicationException, so we could store the response info
* for client usage. Perhaps we can store it in an alternate field?
*/
@SuppressWarnings("serial")
public class WebClientApplicationException extends WebApplicationException {

public WebClientApplicationException() {
super();
}

public WebClientApplicationException(String reason) {
super(reason);
}

public WebClientApplicationException(Throwable t) {
super(t);
}

public WebClientApplicationException(String reason, Throwable t) {
super(reason, t);
}
public class WebClientApplicationException extends RuntimeException {

@Override
public final Response getResponse() {
return null;
public WebClientApplicationException(String message) {
super(message);
}
}

0 comments on commit 95e6d22

Please sign in to comment.