2
0
mirror of https://github.com/esiur/esiur-dart.git synced 2025-09-29 18:53:19 +00:00

Exceptions

This commit is contained in:
2020-02-23 12:54:01 +03:00
parent 651f8b65dd
commit 1405891985
5 changed files with 12 additions and 4 deletions

View File

@@ -33,6 +33,7 @@ class AsyncQueue<T> extends AsyncReply<T>
if (_list[i].ready)
{
super.trigger(_list[i].result);
super.ready = false;
_list.removeAt(i);
i--;
}

View File

@@ -50,6 +50,11 @@ class AsyncReply<T> implements Future<T>
return _resultReady;
}
set ready(value)
{
_resultReady = value;
}
T get result
{
return _result;

View File

@@ -3,6 +3,8 @@ enum ExceptionCode
{
HostNotReachable,
AccessDenied,
UserNotFound,
ChallengeFailed,
ResourceNotFound,
AttachDenied,
InvalidMethod,