intellij-randomness / com.fwdekker.randomness / ErrorReporter

ErrorReporter

class ErrorReporter : ErrorReportSubmitter

A report submitter that opens a pre-filled issue creation form on Randomness' GitHub repository.

This class pertains to reports of exceptions that are not caught by the plugin and end up being shown to the user as a notification by IntelliJ.

Constructors

<init>

ErrorReporter()

A report submitter that opens a pre-filled issue creation form on Randomness' GitHub repository.

Functions

getIssueUrl

fun getIssueUrl(events: Array<out IdeaLoggingEvent>, additionalInfo: String?): String

Constructs a URL to create an issue with the given information that is below the maximum URL limit.

getPrivacyNoticeText

fun getPrivacyNoticeText(): String

Returns the privacy notice text.

getReportActionText

fun getReportActionText(): String

Returns the text that is displayed in the button to report the error.

submit

fun submit(events: Array<out IdeaLoggingEvent>, additionalInfo: String?, parentComponent: Component, consumer: Consumer<SubmittedReportInfo>): Boolean

Submits the exception as desired by the user.

Companion Object Properties

MAX_URL_LENGTH

const val MAX_URL_LENGTH: Int

Maximum URL length supported by GitHub, experimentally verified.