error

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageType

type MessageType string
const (
	// MessageTypeDefault is the message type for default
	MessageTypeDefault MessageType = "default"

	// MessageTypeProgress is the message type for progress
	MessageTypeProgress MessageType = "progress"

	// MessageTypeSuccess is the message type for success
	MessageTypeSuccess MessageType = "success"
)

type ModelError

type ModelError struct {
	// contains filtered or unexported fields
}

func SetupModelError

func SetupModelError() ModelError

func (*ModelError) GetError

func (m *ModelError) GetError() error

func (*ModelError) GetErrorMessage

func (m *ModelError) GetErrorMessage() string

func (*ModelError) GetMessage

func (m *ModelError) GetMessage() string

func (*ModelError) IsError

func (m *ModelError) IsError() bool

func (*ModelError) Reset

func (m *ModelError) Reset()

func (*ModelError) ResetError

func (m *ModelError) ResetError()

func (*ModelError) ResetMessage

func (m *ModelError) ResetMessage()

func (*ModelError) SetDefaultMessage

func (m *ModelError) SetDefaultMessage(message string)

func (*ModelError) SetError

func (m *ModelError) SetError(err error)

func (*ModelError) SetErrorMessage

func (m *ModelError) SetErrorMessage(errorMessage string)

func (*ModelError) SetProgressMessage

func (m *ModelError) SetProgressMessage(message string)

func (*ModelError) SetSuccessMessage

func (m *ModelError) SetSuccessMessage(message string)

func (*ModelError) View

func (m *ModelError) View() string

func (*ModelError) ViewError

func (m *ModelError) ViewError() string

func (*ModelError) ViewMessage

func (m *ModelError) ViewMessage() string

Jump to

Keyboard shortcuts

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