fromByteArrayStream static method
Dummy static serializer.
Must be overridden by the respective implementing class.
@param in The input byte stream to be used @return the object parsed from the input stream by the respective class @throws IOException if not overridden or reached unexpectedly the end of streamImplementation
static Future<SerializedException> fromByteArrayStream(ByteStream in_) async {
SerializerHelper.castTest('SerializedException', serialversionUID,
await SerializerHelper.readLong(in_));
String name = await SerializerHelper.readString(in_) ?? 'UNKNOWN TEXT';
String message =
await SerializerHelper.readString(in_) ?? 'UNKNOWN MESSAGE';
StackTrace? ste = await SerializerHelper.readStackTraces(in_);
SerializedException? cause;
if (await SerializerHelper.readInt(in_) == 1) {
cause = await SerializedException.fromByteArrayStream(in_);
}
SerializerHelper.castTest('SerializedException', serialversionUID,
await SerializerHelper.readLong(in_), 2);
return SerializedException(name,
message: message, stackTrace: ste, cause: cause);
}