Skip to content
Draft
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 README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ const client = new Version3Client({

Errors are categorized as:
- `HttpException`: Server responded with an error (includes parsed error details)
- `AxiosError`: Network/configuration issues (e.g., timeouts)
- `Error`: Network/configuration issues (e.g., timeouts)

**Example handling:**

Expand All @@ -136,7 +136,7 @@ try {
if (error instanceof HttpException) {
console.error('Server error:', error.message);
console.debug('Response headers:', error.cause.response?.headers);
} else if (error instanceof AxiosError) {
} else if (error instanceof Error) {
console.error('Network error:', error.code);
} else {
console.error('Unexpected error:', error);
Expand Down
11 changes: 0 additions & 11 deletions examples/.editorconfig

This file was deleted.

5 changes: 0 additions & 5 deletions examples/.gitignore

This file was deleted.

79 changes: 0 additions & 79 deletions examples/README.md

This file was deleted.

Loading