Skip to content

Commit

Permalink
improve http op handling
Browse files Browse the repository at this point in the history
  • Loading branch information
jshook committed Oct 17, 2023
1 parent a6695e4 commit 26da67b
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 34 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
package io.nosqlbench.adapter.http;

/*
* Copyright (c) 2022 nosqlbench
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/


import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public Object apply(long value) {
}
// propogate exception so main error handling logic can take over
if (error != null) {
throw new RuntimeException(error);
throw new RuntimeException(error).getClass().getna;
}
}
return switch (resultType) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
package io.nosqlbench.adapter.http.core;

/*
* Copyright (c) 2022 nosqlbench
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/


import com.google.gson.JsonElement;

public enum HttpResultType {
Expand Down

This file was deleted.

0 comments on commit 26da67b

Please sign in to comment.