Skip to content

Error

Indicates that some error occurred during data collection. message holds any message about the error which might have been captured.

Data type CarpDataTypes.ERROR. Note that this class hides dart:core Error when carp_core is imported without a prefix.

Inheritance
Annotations

Constructors

Error.fromJson

Error.fromJson(
  1. Map<String, dynamic> json
)

Error

Error({
  1. required String message,
})

Properties

fromJsonFunction

Function get fromJsonFunction
override

The function which can convert a JSON string to an object of this type.

message

String message
getter/setter pair

The original error message returned from the probe, if available.

Methods

toJson

Map<String, dynamic> toJson()
override

Return a JSON encoding of this object.