File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
api/src/main/java/org/cardanofoundation/rosetta Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -35,12 +35,11 @@ public class SearchApiImpl implements SearchApi {
35
35
@ Override
36
36
public ResponseEntity <SearchTransactionsResponse > searchTransactions (
37
37
SearchTransactionsRequest searchTransactionsRequest ) {
38
- if (offlineMode ) {
38
+ if (offlineMode ) {
39
39
throw ExceptionFactory .notSupportedInOfflineMode ();
40
40
}
41
41
networkService .verifyNetworkRequest (searchTransactionsRequest .getNetworkIdentifier ());
42
42
43
-
44
43
Long pageSize = Optional .ofNullable (searchTransactionsRequest .getLimit ()).orElse (PAGE_SIZE );
45
44
pageSize = pageSize > PAGE_SIZE ? PAGE_SIZE : pageSize ;
46
45
Long offset = Optional .ofNullable (searchTransactionsRequest .getOffset ()).orElse (0L );
@@ -51,6 +50,6 @@ public ResponseEntity<SearchTransactionsResponse> searchTransactions(
51
50
52
51
return ResponseEntity .ok (searchMapper .mapToSearchTransactionsResponse (
53
52
blockTransactions , nextOffset ));
54
-
55
53
}
54
+
56
55
}
Original file line number Diff line number Diff line change @@ -12,7 +12,8 @@ public class ApiException extends RuntimeException {
12
12
private final Error error ;
13
13
14
14
public ApiException (Error error ) {
15
- super ();
15
+ super (error . getMessage () == null ? "?" : error . getMessage () );
16
16
this .error = error ;
17
17
}
18
+
18
19
}
You can’t perform that action at this time.
0 commit comments