File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
src/main/java/com/microsoft/graph Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -153,8 +153,13 @@ public URL getRequestUrl() {
153153 try {
154154 return new URL (uriBuilder .build ().toString ());
155155 } catch (final MalformedURLException e ) {
156- throw new ClientException ("Invalid URL: " + uriBuilder .toString (), e );
156+ if (this instanceof CustomRequest ) {
157+ this .getClient ().getLogger ().logError ("Invalid custom URL: " + uriBuilder .toString (), e );
158+ } else {
159+ throw new ClientException ("Invalid URL: " + uriBuilder .toString (), e );
160+ }
157161 }
162+ return null ;
158163 }
159164
160165 private String addFunctionParameters () {
Original file line number Diff line number Diff line change 88import com .microsoft .graph .models .extensions .GraphServiceClient ;
99import com .microsoft .graph .options .Option ;
1010
11+ /**
12+ * The class for the CustomRequestBuilder
13+ *
14+ * @throws ClientException If the provided URL is malformed, the client exception will contain a MalformedURLException
15+ */
1116public class CustomRequestBuilder extends BaseRequestBuilder {
1217 public final Class responseType ;
1318
You can’t perform that action at this time.
0 commit comments