Index: lib/src/asset/dart/serialize/exception.dart |
diff --git a/lib/src/asset/dart/serialize/exception.dart b/lib/src/asset/dart/serialize/exception.dart |
index d870a6e51535b4c9b9ad3fde8dd209543b146474..f74537a008fc2ac4acf3046ae9ba59cde041fd16 100644 |
--- a/lib/src/asset/dart/serialize/exception.dart |
+++ b/lib/src/asset/dart/serialize/exception.dart |
@@ -20,7 +20,8 @@ class CrossIsolateException implements Exception { |
/// The exception's message, or its [toString] if it didn't expose a `message` |
/// property. |
- final String message; |
+ String get message => _message; |
+ final String _message; |
/// The exception's stack chain, or `null` if no stack chain was available. |
final Chain stackTrace; |
@@ -30,7 +31,7 @@ class CrossIsolateException implements Exception { |
/// [error] should be the result of [CrossIsolateException.serialize]. |
CrossIsolateException.deserialize(Map error) |
: type = error['type'], |
- message = error['message'], |
+ _message = error['message'], |
stackTrace = error['stack'] == null ? null : |
new Chain.parse(error['stack']); |