diff --git a/.github/workflows/check-badges.yml b/.github/workflows/check-badges.yml
index d673011..f2698b0 100644
--- a/.github/workflows/check-badges.yml
+++ b/.github/workflows/check-badges.yml
@@ -2,9 +2,9 @@ name: Check badges in README.md
on:
push:
- branches: [ main ]
+ branches: [ v3 ]
pull_request:
- branches: [ main ]
+ branches: [ v3 ]
jobs:
build-and-test:
diff --git a/.github/workflows/check-style.yml b/.github/workflows/check-style.yml
index bdd456d..ee6f92f 100644
--- a/.github/workflows/check-style.yml
+++ b/.github/workflows/check-style.yml
@@ -2,9 +2,9 @@ name: Java check style
on:
push:
- branches: [ main ]
+ branches: [ v3 ]
pull_request:
- branches: [ main ]
+ branches: [ v3 ]
jobs:
lint:
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index 68da9e4..9dd9262 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -5,9 +5,9 @@ name: Java CI with Maven
on:
push:
- branches: [ main ]
+ branches: [ v3 ]
pull_request:
- branches: [ main ]
+ branches: [ v3 ]
jobs:
test:
diff --git a/README.md b/README.md
index cfe0252..603c601 100644
--- a/README.md
+++ b/README.md
@@ -5,7 +5,7 @@
[](https://releases.aspose.cloud/java/repo/com/aspose/aspose-barcode-cloud/)
- API version: 3.0
-- SDK version: 24.12.0
+- SDK version: 24.13.0
## Demo applications
@@ -68,7 +68,7 @@ Add this dependency to your project's POM:
com.aspose
aspose-barcode-cloud
- 24.12.0
+ 24.13.0
compile
```
@@ -83,7 +83,7 @@ mvn clean package
Then manually install the following JARs:
-- `target/aspose-barcode-cloud-24.12.0.jar`
+- `target/aspose-barcode-cloud-24.13.0.jar`
- `target/lib/*.jar`
## Getting Started
diff --git a/pom.xml b/pom.xml
index 58893dc..3fa4187 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
aspose-barcode-cloud
jar
aspose-barcode-cloud
- 24.12.0
+ 24.13.0
https://www.aspose.cloud
Aspose.BarCode Cloud SDK for Java
@@ -197,10 +197,10 @@
${java.version}
${java.version}
1.9.0
- 2.11.0
- 1.6.14
+ 2.13.1
+ 1.6.16
4.12.0
- 1.7.0
+ 1.7.1
1.0.0
4.13.2
2.18.0
diff --git a/src/main/java/com/aspose/barcode/cloud/ApiClient.java b/src/main/java/com/aspose/barcode/cloud/ApiClient.java
index af4d822..2a75442 100644
--- a/src/main/java/com/aspose/barcode/cloud/ApiClient.java
+++ b/src/main/java/com/aspose/barcode/cloud/ApiClient.java
@@ -41,7 +41,7 @@
/** ApiClient. */
public class ApiClient {
public final String apiVersion = "v3.0";
- public final String clientVersion = "24.12.0";
+ public final String clientVersion = "24.13.0";
private String baseUrl = "https://api.aspose.cloud";
private String tokenUrl = baseUrl + "/connect/token";
@@ -680,7 +680,10 @@ public T handleResponse(Response response, Type returnType) throws ApiExcept
response.message(), e, response.code(), response.headers().toMultimap());
}
- throw new ApiException(response.message(), response.code(), errorResponse);
+ throw new ApiException(
+ response.message().isEmpty() ? String.valueOf(response.code()) : response.message(),
+ response.code(),
+ errorResponse);
}
/**
diff --git a/src/test/java/com/aspose/barcode/cloud/test/ExceptionTest.java b/src/test/java/com/aspose/barcode/cloud/test/ExceptionTest.java
index f3601ad..245e2c2 100644
--- a/src/test/java/com/aspose/barcode/cloud/test/ExceptionTest.java
+++ b/src/test/java/com/aspose/barcode/cloud/test/ExceptionTest.java
@@ -31,7 +31,7 @@ public void ExceptionMessageParsed() {
} catch (ApiException e) {
thrown = true;
assertEquals(400, e.getHttpCode());
- assertEquals("com.aspose.barcode.cloud.ApiException: Bad Request", e.toString());
+ assertEquals("com.aspose.barcode.cloud.ApiException: 400", e.toString());
assertEquals(
"errorInvalidInputData: Barcode.Text is not provided.\n"
+ "Operation Failed. The input data is not valid.",