Skip to content

Commit d250991

Browse files
committed
Fix for custom exception
1 parent 39e6013 commit d250991

File tree

5 files changed

+17
-3
lines changed

5 files changed

+17
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.4.0-dev.2
2+
3+
- Minor fixes for custom exceptions
4+
15
## 0.4.0-dev.1
26

37
- Improved code quality

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Add this to your package's `pubspec.yaml` file:
2020

2121
```yml
2222
dependencies:
23-
appwrite: ^0.4.0-dev.1
23+
appwrite: ^0.4.0-dev.2
2424
```
2525
2626
You can install packages from the command line:

lib/client.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class Client {
2525

2626
this.headers = {
2727
'content-type': 'application/json',
28-
'x-sdk-version': 'appwrite:flutter:0.4.0-dev.1',
28+
'x-sdk-version': 'appwrite:flutter:0.4.0-dev.2',
2929
};
3030

3131
this.config = {};

lib/exception.dart

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
part of appwrite;
2+
3+
class AppwriteException implements Exception {
4+
final String message;
5+
final int code;
6+
final dynamic response;
7+
8+
AppwriteException([this.message = "", this.code, this.response]);
9+
10+
}

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: appwrite
2-
version: 0.4.0-dev.1
2+
version: 0.4.0-dev.2
33
description: Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API
44
homepage: https://appwrite.io
55
repository: https://github.com/appwrite/sdk-for-flutter

0 commit comments

Comments
 (0)