SentryHandler class

Inheritance

Constructors

SentryHandler(SentryClient sentryClient, {SentryUser? userContext, String serverName = 'Catcher 2', String loggerName = 'Catcher 2', bool enableDeviceParameters = true, bool enableApplicationParameters = true, bool enableCustomParameters = true, bool printLogs = true, String? customEnvironment, String? customRelease})

Properties

customEnvironment → String?
Custom environment; if null, Catcher 2 will generate it
final
customRelease → String?
Custom release; if null, Catcher 2 will generate it
final
enableApplicationParameters → bool
Enable application parameters to be generated by Catcher 2
final
enableCustomParameters → bool
Enable custom parameters to be generated by Catcher 2
final
enableDeviceParameters → bool
Enable device parameters to be generated by Catcher 2
final
hashCode → int
The hash code for this object.
no setterinherited
localizationOptions ↔ LocalizationOptions
Get currently used localization options
getter/setter pairinherited
logger ↔ Catcher2Logger
Logger instance
getter/setter pairinherited
loggerName → String
The logger name to send
final
printLogs → bool
Enable additional logs printing
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sentryClient → SentryClient
Sentry Client instance
final
serverName → String
The server name to send
final
userContext ↔ SentryUser?
User data
getter/setter pair

Methods

buildEvent(Report report, Map<String, dynamic> tags) → SentryEvent
changeToSentryMap(Map<String, dynamic> map) → Map<String, String>
getSupportedPlatforms() → List<PlatformType>
Get list of supported platforms
override
handle(Report report, BuildContext? context) → Future<bool>
Method called when report has been accepted by user
override
isContextRequired() → bool
Check if given report mode requires context to run
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shouldHandleWhenRejected() → bool
Check whether report mode should auto confirm without user confirmation.
inherited
toString() → String
Can be overridden to provide more information about this handler.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited