@@ -17,12 +17,9 @@ import 'package:drift/src/remote/communication.dart' as _$drift_communication;
1717import 'package:drift/src/runtime/cancellation_zone.dart'
1818 as _$drift_cancellation_zone;
1919import 'package:drift/src/runtime/exceptions.dart' as _$drift_exceptions;
20- import 'package:google_cloud/src/bad_configuration_exception.dart'
21- as _$google_cloud_bad_configuration_exception;
22- import 'package:google_cloud/src/bad_request_exception.dart'
23- as _$google_cloud_bad_request_exception;
2420import 'package:hrana/src/exception.dart' as _$hrana_exception;
2521import 'package:http/src/exception.dart' as _$http_exception;
22+ import 'package:path/src/path_exception.dart' as _$path_path_exception;
2623import 'package:shelf/src/hijack_exception.dart' as _$shelf_hijack_exception;
2724import 'package:sqlite3/src/exception.dart' as _$sqlite3_exception;
2825import 'package:sqlite3/src/vfs.dart' as _$sqlite3_vfs;
@@ -455,10 +452,16 @@ void initSerializers({_$celest.Serializers? serializers}) {
455452 ));
456453 _$celest.Serializers .instance.put (
457454 _$celest.Serializer .define <WebSocketException , Map <String , Object ?>?>(
458- serialize: ($value) => < String , Object ? > {r'message' : $value.message},
455+ serialize: ($value) => < String , Object ? > {
456+ r'message' : $value.message,
457+ if ($value.httpStatusCode case final httpStatusCode? )
458+ r'httpStatusCode' : httpStatusCode,
459+ },
459460 deserialize: ($serialized) {
460461 return WebSocketException (
461- (($serialized? [r'message' ] as String ? )) ?? '' );
462+ (($serialized? [r'message' ] as String ? )) ?? '' ,
463+ ($serialized? [r'httpStatusCode' ] as num ? )? .toInt (),
464+ );
462465 },
463466 ));
464467 _$celest.Serializers .instance.put (_$celest.Serializer .define<
@@ -950,44 +953,6 @@ void initSerializers({_$celest.Serializers? serializers}) {
950953 );
951954 },
952955 ));
953- _$celest.Serializers .instance.put (_$celest.Serializer .define<
954- _$google_cloud_bad_configuration_exception.BadConfigurationException ,
955- Map <String , Object ?>> (
956- serialize: ($value) => < String , Object ? > {
957- r'message' : $value.message,
958- if ($value.details case final details? ) r'details' : details,
959- },
960- deserialize: ($serialized) {
961- return _$google_cloud_bad_configuration_exception
962- .BadConfigurationException (
963- ($serialized[r'message' ] as String ),
964- details: ($serialized[r'details' ] as String ? ),
965- );
966- },
967- ));
968- _$celest.Serializers .instance.put (_$celest.Serializer .define<
969- _$google_cloud_bad_request_exception.BadRequestException ,
970- Map <String , Object ?>> (
971- serialize: ($value) => < String , Object ? > {
972- r'statusCode' : $value.statusCode,
973- r'message' : $value.message,
974- if ($value.innerError case final innerError? )
975- r'innerError' : innerError,
976- if (_$celest.Serializers .instance
977- .serialize <StackTrace ?>($value.innerStack)
978- case final innerStack? )
979- r'innerStack' : innerStack,
980- },
981- deserialize: ($serialized) {
982- return _$google_cloud_bad_request_exception.BadRequestException (
983- ($serialized[r'statusCode' ] as num ).toInt (),
984- ($serialized[r'message' ] as String ),
985- innerError: $serialized[r'innerError' ],
986- innerStack: _$celest.Serializers .instance
987- .deserialize <StackTrace ?>($serialized[r'innerStack' ]),
988- );
989- },
990- ));
991956 _$celest.Serializers .instance.put (_$celest.Serializer .define<
992957 _$hrana_exception.ConnectionClosed , Map <String , Object ?>? > (
993958 serialize: ($value) => const < String , Object ? > {},
@@ -1024,6 +989,14 @@ void initSerializers({_$celest.Serializers? serializers}) {
1024989 );
1025990 },
1026991 ));
992+ _$celest.Serializers .instance.put (_$celest.Serializer .define<
993+ _$path_path_exception.PathException , Map <String , Object ?>> (
994+ serialize: ($value) => < String , Object ? > {r'message' : $value.message},
995+ deserialize: ($serialized) {
996+ return _$path_path_exception.PathException (
997+ ($serialized[r'message' ] as String ));
998+ },
999+ ));
10271000 _$celest.Serializers .instance.put (_$celest.Serializer .define<
10281001 _$shelf_hijack_exception.HijackException , Map <String , Object ?>? > (
10291002 serialize: ($value) => const < String , Object ? > {},
@@ -1039,6 +1012,7 @@ void initSerializers({_$celest.Serializers? serializers}) {
10391012 r'explanation' : explanation,
10401013 r'extendedResultCode' : $value.extendedResultCode,
10411014 r'resultCode' : $value.resultCode,
1015+ if ($value.offset case final offset? ) r'offset' : offset,
10421016 if ($value.operation case final operation? ) r'operation' : operation,
10431017 if ($value.causingStatement case final causingStatement? )
10441018 r'causingStatement' : causingStatement,
@@ -1054,6 +1028,7 @@ void initSerializers({_$celest.Serializers? serializers}) {
10541028 ($serialized[r'parametersToStatement' ] as Iterable <Object ?>? )
10551029 ? .toList (),
10561030 ($serialized[r'operation' ] as String ? ),
1031+ ($serialized[r'offset' ] as num ? )? .toInt (),
10571032 );
10581033 },
10591034 ));
0 commit comments