-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
25 additions
and
13 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/// Error thrown with connection is lost | ||
class ConnectionLostException implements Exception { | ||
final String? message; | ||
|
||
const ConnectionLostException([this.message]); | ||
|
||
@override | ||
String toString() => message ?? 'ConnectionLostError'; | ||
} | ||
|
||
/// Error thrown when mDNS fails to find a match on the local network | ||
class NotLocalAddressException implements Exception { | ||
final String address; | ||
|
||
const NotLocalAddressException(this.address); | ||
|
||
@override | ||
String toString() => 'Address not on local network'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters