flutter work

This commit is contained in:
John Smith 2022-12-03 18:08:53 -05:00
parent fa3ad29d21
commit 3e24154e3d
7 changed files with 42 additions and 8 deletions

View file

@ -1556,6 +1556,10 @@ abstract class VeilidAPIException implements Exception {
return VeilidAPIExceptionMissingArgument(
json["context"], json["argument"]);
}
case "Generic":
{
return VeilidAPIExceptionGeneric(json["message"]);
}
default:
{
throw VeilidAPIExceptionInternal(
@ -1681,6 +1685,18 @@ class VeilidAPIExceptionMissingArgument implements VeilidAPIException {
VeilidAPIExceptionMissingArgument(this.context, this.argument);
}
class VeilidAPIExceptionGeneric implements VeilidAPIException {
final String message;
@override
String toString() {
return "VeilidAPIException: Generic (message: $message)";
}
//
VeilidAPIExceptionGeneric(this.message);
}
//////////////////////////////////////
/// VeilidVersion