DVFileCrashStore class
A file store, on a target with no file system to put it on.
Constructing one throws rather than returning a store that silently keeps nothing: a crash reporter that loses every report across a restart looks exactly like one that works until the day somebody needs a report.
- Implemented types
Constructors
- DVFileCrashStore(String directory)
Properties
Methods
-
countCrash(
String release) → int -
Counts one more crash on this device for
releaseand returns the count. Persisted with the records, because a crash loop is a sequence of restarts, and a limit that restarts with them limits nothing.override -
isSent(
String id) → bool -
override
-
markSent(
String id) → void -
Notes that
idreached the sink, before the record is removed. A process that dies between the two finds the note at the next launch and removes the record without sending it again.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pending(
) → List< DVCrashStoreEntry> -
Every record left by earlier runs, oldest first.
override
-
remove(
String id) → void -
Removes the record and its sent note.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
writeSync(
DVCrashReport report) → void -
Writes
reportbefore returning.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited