Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/check-badges.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/check-style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Java check style

on:
push:
branches: [ main ]
branches: [ v3 ]
pull_request:
branches: [ main ]
branches: [ v3 ]

jobs:
lint:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ name: Java CI with Maven

on:
push:
branches: [ main ]
branches: [ v3 ]
pull_request:
branches: [ main ]
branches: [ v3 ]

jobs:
test:
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[![Maven metadata URL](https://img.shields.io/maven-metadata/v?metadataUrl=https%3A%2F%2Freleases.aspose.cloud%2Fjava%2Frepo%2Fcom%2Faspose%2Faspose-barcode-cloud%2Fmaven-metadata.xml)](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

Expand Down Expand Up @@ -68,7 +68,7 @@ Add this dependency to your project's POM:
<dependency>
<groupId>com.aspose</groupId>
<artifactId>aspose-barcode-cloud</artifactId>
<version>24.12.0</version>
<version>24.13.0</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<artifactId>aspose-barcode-cloud</artifactId>
<packaging>jar</packaging>
<name>aspose-barcode-cloud</name>
<version>24.12.0</version>
<version>24.13.0</version>
<url>https://www.aspose.cloud</url>
<description>Aspose.BarCode Cloud SDK for Java</description>
<scm>
Expand Down Expand Up @@ -197,10 +197,10 @@
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
<gson-fire-version>1.9.0</gson-fire-version>
<gson-version>2.11.0</gson-version>
<swagger-core-version>1.6.14</swagger-core-version>
<gson-version>2.13.1</gson-version>
<swagger-core-version>1.6.16</swagger-core-version>
<okhttp-version>4.12.0</okhttp-version>
<threetenbp-version>1.7.0</threetenbp-version>
<threetenbp-version>1.7.1</threetenbp-version>
<maven-plugin-version>1.0.0</maven-plugin-version>
<junit-version>4.13.2</junit-version>
<versions-maven-plugin.version>2.18.0</versions-maven-plugin.version>
Expand Down
7 changes: 5 additions & 2 deletions src/main/java/com/aspose/barcode/cloud/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -680,7 +680,10 @@ public <T> 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);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down