Skip to content

Commit

Permalink
Extend docstring to make it clear why json isn't printed and that it …
Browse files Browse the repository at this point in the history
…is available
  • Loading branch information
dustyholmes-wf authored and davidmorgan committed Aug 16, 2023
1 parent cc5edb5 commit 6986123
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions built_value/lib/serializer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,9 @@ abstract class StructuredSerializer<T> implements Serializer<T> {
}

/// [Error] conveying why deserialization failed.
///
/// The Object that failed to deseralize is included as [json] but is not displayed
/// in the error message to prevent accidental inclusion in logs.
class DeserializationError extends Error {
final String? json;
final FullType type;
Expand Down

0 comments on commit 6986123

Please sign in to comment.