app_error

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrorReportName = "operation_errors"
)

Variables

View Source
var (
	MErrorReport = app_msg.Apply(&MsgErrorReport{}).(*MsgErrorReport)
)

Functions

This section is empty.

Types

type ErrorReport

type ErrorReport interface {
	Up(ctl app_control.Control) error
	Down()
	ErrorListener(err error, mouldId, batchId string, p interface{})
}

func NewErrorReport

func NewErrorReport(lg esl.Logger, wb app_workspace.Bundle, ui app_ui.UI) ErrorReport

func NewMock

func NewMock() ErrorReport

type ErrorReportRow

type ErrorReportRow struct {
	OperationName string          `json:"operation_name"`
	BatchId       string          `json:"batch_id"`
	Data          json.RawMessage `json:"data"`
	Error         string          `json:"error"`
}

type MsgErrorReport

type MsgErrorReport struct {
	ErrorOneOrMoreOperationErrors app_msg.Message
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL