Skip to content

Commit

Permalink
Merge pull request #5 from takenet/reason-timeout
Browse files Browse the repository at this point in the history
Remove Timeout from LimeException class
  • Loading branch information
githubdoandre authored Mar 18, 2022
2 parents ec0def2 + 00b7e0c commit 40776c6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.0.8

* Remove Timeout from LimeException class
* Created new reason code from timeout
## 0.0.7

* Created LimeException class
Expand Down
3 changes: 1 addition & 2 deletions lib/src/protocol/network/lime.exception.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ import '../reason.dart';
class LimeException extends Error {
final CommandStatus status;
final Reason reason;
final bool timeout;

LimeException(this.status, int code, {String? description, this.timeout = false})
LimeException(this.status, int code, {String? description})
: reason = Reason(code: code, description: description);

@override
Expand Down
3 changes: 3 additions & 0 deletions lib/src/protocol/reason_codes.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
// Default server reason codes
class ReasonCodes {
/// Timeout error
static const int timeoutError = 0;

/// General error
static const int generalError = 1;

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: lime
description: LIME Protocol for Dart/Flutter - A lightweight messaging library
version: 0.0.7
version: 0.0.8
homepage: https://limeprotocol.org/
repository: https://github.com/takenet/lime-dart

Expand Down

0 comments on commit 40776c6

Please sign in to comment.