ErrorEventLogDto class final
Event-log entry recording an error emission (subject.addError(...)).
- Inheritance
-
- Object
- EventLogDto
- ErrorEventLogDto
- Annotations
-
- @JsonSerializable.new()
Constructors
- ErrorEventLogDto({required String id, required String timestamp, required String streamId, required String error})
- Creates an error event-log entry.
- ErrorEventLogDto.fromEventLog(ErrorEventLog log)
-
Builds an ErrorEventLogDto from an internal
ErrorEventLog.factory -
ErrorEventLogDto.fromJson(Map<
String, dynamic> json) -
Deserialises an ErrorEventLogDto from JSON.
factory
Properties
- error → String
-
String form of the emitted error.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Stable identifier for this event-log entry.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- streamId → String
-
Identifier of the stream the event belongs to.
finalinherited
- timestamp → String
-
ISO-8601 timestamp of when the event occurred.
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serialises this DTO to JSON. Subclasses tag the output with a
typediscriminator field so fromJson can route to the right factory.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited